ChannelAddress
An interface for Channel used in Actor
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Channeltrait DatagramChannelclass AbstractChannelclass AbstractFileChannelclass NioFileChannelclass AbstractNetworkChannelclass AbstractDatagramChannelclass NioDatagramChannelclass AbstractServerChannelclass NioServerSocketChannelclass AbstractSocketChannelclass NioSocketChanneltrait ServerChannelShow all
- Self type
Members list
Value members
Abstract methods
actor send ask message to channel, in underlying, it calls channel.write
actor send ask message to channel, in underlying, it calls channel.write
Value parameters
- future
-
the reply message future.
- value
-
ask message which need this Channel relpy a message.
Attributes
- Returns
-
the reply message future.
Unique id of this channel
Unique id of this channel
Attributes
Concrete methods
Request to bind to the given SocketAddress and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error. This will result in having the SocketAddress) method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Request to bind to the given SocketAddress and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error. This will result in having the SocketAddress) method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Value parameters
- future
-
bind async result
- local
-
Address to bind
Attributes
- Returns
-
same ChannelFuture in params future
Request to close the Channel and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error. After it is closed it is not possible to reuse it again. This will result in having the ChannelHandler.close method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Request to close the Channel and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error. After it is closed it is not possible to reuse it again. This will result in having the ChannelHandler.close method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Value parameters
- future
-
operation async result.
Attributes
- Returns
-
same ChannelFuture in params future
Request to connect to the given SocketAddress while bind to the local and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error. This will result in having the SocketAddress, SocketAddress) method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Request to connect to the given SocketAddress while bind to the local and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error. This will result in having the SocketAddress, SocketAddress) method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Value parameters
- future
-
operation async result.
- local
-
local address to bind.
- remote
-
remote address to connect.
Attributes
- Returns
-
same ChannelFuture in params future
Request to connect to the given SocketAddress and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error. If the connection fails because of a connection timeout, the ChannelFuture will get failed with a ConnectTimeoutException. If it fails because of connection refused a ConnectException will be used. This will result in having the SocketAddress, SocketAddress) method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Request to connect to the given SocketAddress and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error. If the connection fails because of a connection timeout, the ChannelFuture will get failed with a ConnectTimeoutException. If it fails because of connection refused a ConnectException will be used. This will result in having the SocketAddress, SocketAddress) method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Value parameters
- remote
-
remote address to connect.
Attributes
Request to disconnect from the remote peer and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error. This will result in having the ChannelHandler.disconnect method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Request to disconnect from the remote peer and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error. This will result in having the ChannelHandler.disconnect method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Value parameters
- future
-
operation async result.
Attributes
- Returns
-
same ChannelFuture in params future
Opens or creates a file, returning a file channel to access the file. An invocation of this method behaves in exactly the same way as the invocation
Opens or creates a file, returning a file channel to access the file. An invocation of this method behaves in exactly the same way as the invocation
options)
where options is a set of the options specified in the options array
This will result in having the ChannelHandler.open method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Value parameters
- attrs
-
An optional list of file attributes to set atomically when creating the file
- future
-
operation async result. It maybe fails with
- IllegalArgumentException - If the set contains an invalid combination of options
- UnsupportedOperationException – If the path is associated with a provider that does not support creating file channels, or an unsupported open option is specified.
- FileAlreadyExistsException – If a file of that name already exists and the CREATE_NEW option is specified and the file is being opened for writing (optional specific exception) IOException – If an I/O error occurs
- SecurityException – If a security manager is installed and it denies an unspecified permission required by the implementation. In the case of the default provider, the SecurityManager.checkRead(String) method is invoked to check read access if the file is opened for reading. The SecurityManager.checkWrite(String) method is invoked to check write access if the file is opened for writing
- opts
-
Options specifying how the file is opened
- path
-
The path of the file to open or create
Attributes
- Returns
-
same ChannelFuture in params future
- See also
-
FileChannel
Opens or creates a file, returning a file channel to access the file. An invocation of this method behaves in exactly the same way as the invocation
Opens or creates a file, returning a file channel to access the file. An invocation of this method behaves in exactly the same way as the invocation
options)
where options is a set of the options specified in the options array
This will result in having the ChannelHandler.open method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Value parameters
- attrs
-
An optional list of file attributes to set atomically when creating the file
- file
-
The file to open or create
- fu
-
operation async result. It maybe fails with
- IllegalArgumentException - If the set contains an invalid combination of options
- UnsupportedOperationException – If the path is associated with a provider that does not support creating file channels, or an unsupported open option is specified.
- FileAlreadyExistsException – If a file of that name already exists and the CREATE_NEW option is specified and the file is being opened for writing (optional specific exception) IOException – If an I/O error occurs
- SecurityException – If a security manager is installed and it denies an unspecified permission required by the implementation. In the case of the default provider, the SecurityManager.checkRead(String) method is invoked to check read access if the file is opened for reading. The SecurityManager.checkWrite(String) method is invoked to check write access if the file is opened for writing
- opts
-
Options specifying how the file is opened
Attributes
- Returns
-
same ChannelFuture in params future
- See also
-
FileChannel
Request to read data from the Channel, triggers an Object) event if data was read, and triggers a channelReadComplete event so the handler can decide to continue reading. If there's a pending read operation already, this method does nothing. This will result in having the ReadBufferAllocator) method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Request to read data from the Channel, triggers an Object) event if data was read, and triggers a channelReadComplete event so the handler can decide to continue reading. If there's a pending read operation already, this method does nothing. This will result in having the ReadBufferAllocator) method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Attributes
Request shutdown one direction of the Channel and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error. When completed, the channel will either not produce any inbound data anymore, or it will not be possible to write data anymore, depending on the given ChannelShutdownDirection. Depending on the transport implementation shutting down the ChannelShutdownDirection.Outbound or ChannelShutdownDirection.Inbound might also result in data transferred over the network. Like for example in case of TCP shutting down the ChannelShutdownDirection.Outbound will result in a FIN that is transmitted to the remote peer that will as a result shutdown ChannelShutdownDirection.Inbound. This will result in having the ChannelShutdownDirection). method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Request shutdown one direction of the Channel and notify the ChannelFuture once the operation completes, either because the operation was successful or because of an error. When completed, the channel will either not produce any inbound data anymore, or it will not be possible to write data anymore, depending on the given ChannelShutdownDirection. Depending on the transport implementation shutting down the ChannelShutdownDirection.Outbound or ChannelShutdownDirection.Inbound might also result in data transferred over the network. Like for example in case of TCP shutting down the ChannelShutdownDirection.Outbound will result in a FIN that is transmitted to the remote peer that will as a result shutdown ChannelShutdownDirection.Inbound. This will result in having the ChannelShutdownDirection). method called of the next ChannelHandler contained in the ChannelPipeline of the Channel.
Value parameters
- direction
-
direction to shutdown
- future
-
operation async result
Attributes
- Returns
-
same ChannelFuture in params future