GeezerVison is showing netty.io — ServerSocketChannel (Netty API Reference (4.1.141.Final))
Interface ServerSocketChannel
-
Nested Class Summary
Nested classes/interfaces inherited from interface Channel
Channel.Unsafe
Modifier and Type
Interface
Description
static interface
Unsafe operations that should never be called from user-code.
-
Method Summary
Modifier and Type
Method
Description
Returns the configuration of this channel.
Returns the local address where this channel is bound to.
Returns the remote address where this channel is connected to.
Methods inherited from interface Channel
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, metadata, parent, pipeline, read, unsafe
Modifier and Type
Method
Description
long
long
Returns the ChannelFuture which will be notified when this
channel is closed.
Request to flush all pending messages via this ChannelOutboundInvoker.
Returns the globally unique identifier of this Channel.
boolean
Return true if the Channel is active and so connected.
boolean
Returns true if the Channel is open and may get active later
boolean
boolean
Returns true if and only if the I/O thread will perform the
requested write operation immediately.
Returns the parent of this channel.
Returns an internal-use-only object that provides unsafe operations.
bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlush
Modifier and Type
Method
Description
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.
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.
Request to close the Channel and notify the ChannelFuture once the operation completes,
either because the operation was successful or because of
an error.
Request to close the Channel and notify the ChannelFuture once the operation completes,
either because the operation was successful or because of
an error.
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.
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.
Request to connect to the given SocketAddress while bind to the localAddress and notify the
ChannelFuture once the operation completes, either because the operation was successful or because of
an error.
Request to connect to the given SocketAddress while bind to the localAddress and notify the
ChannelFuture once the operation completes, either because the operation was successful or because of
an error.
Request to deregister from the previous assigned EventExecutor and notify the
ChannelFuture once the operation completes, either because the operation was successful or because of
an error.
Request to deregister from the previous assigned EventExecutor and notify the
ChannelFuture once the operation completes, either because the operation was successful or because of
an error.
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.
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.
Return a special ChannelPromise which can be reused for different operations.
-
Method Details
-
config
Description copied from interface: Channel
Returns the configuration of this channel.
- Specified by:
config in interface Channel
-
localAddress
Description copied from interface: Channel
Returns the local address where this channel is bound to. The returned
SocketAddress is supposed to be down-cast into more concrete
type such as InetSocketAddress to retrieve the detailed
information.
- Specified by:
localAddress in interface Channel
- Returns:
- the local address of this channel.
null if this channel is not bound.
-
remoteAddress
Description copied from interface: Channel
Returns the remote address where this channel is connected to. The
returned SocketAddress is supposed to be down-cast into more
concrete type such as InetSocketAddress to retrieve the detailed
information.
- Specified by:
remoteAddress in interface Channel
- Returns:
- the remote address of this channel.
null if this channel is not connected.
If this channel is not connected but it can receive messages
from arbitrary remote addresses (e.g. DatagramChannel,
use DefaultAddressedEnvelope.recipient() to determine
the origination of the received message as this method will
return null.
|