GeezerVison is showing netty.io — AbstractKQueueServerChannel (Netty API Reference (4.1.141.Final))
Class AbstractKQueueServerChannel
-
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.
-
Field Summary
Fields
Modifier and Type
Field
Description
protected boolean
-
Method Summary
Modifier and Type
Method
Description
protected static void
Returns the configuration of this channel.
protected final void
Schedule a read operation.
protected void
protected void
protected boolean
Connect to the remote peer
protected boolean
protected void
protected void
Disconnect this Channel from its remote peer
protected final int
Read bytes into the given ByteBuf and return the amount.
protected void
Is called after the Channel is registered with its EventLoop as part of the register process.
protected void
Flush the content of the given buffer to the remote peer.
protected final int
boolean
Return true if the Channel is active and so connected.
protected boolean
Return true if the given EventLoop is compatible with this instance.
boolean
Returns true if the Channel is open and may get active later
Returns an off-heap copy of the specified ByteBuf, and releases the original one.
Returns an off-heap copy of the specified ByteBuf, and releases the specified holder.
protected io.netty.channel.kqueue.AbstractKQueueChannel.AbstractKQueueUnsafe
alloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doShutdownOutput, equals, eventLoop, fileChannel, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, localAddress, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, toString, unsafe, validateFileRegion, 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.
long
long
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.
Returns the ChannelFuture which will be notified when this
channel is closed.
final int
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.
protected void
Called when conditions justify shutting down the output portion of the channel.
final boolean
Returns true if and only if the specified object is identical
with this channel (i.e: this == o).
Returns the underlying FileChannel, or null if the region is not open.
Request to flush all pending messages via this ChannelOutboundInvoker.
final int
Returns the ID of this channel.
Returns the globally unique identifier of this Channel.
protected void
Deprecated.
no use-case for this.
protected void
Deprecated.
no use-case for this.
boolean
boolean
Returns true if and only if the I/O thread will perform the
requested write operation immediately.
Returns the local address where this channel is bound to.
protected final int
Returns the parent of this channel.
Returns the remote address where this channel is connected to.
Returns the String representation of this channel.
Returns an internal-use-only object that provides unsafe operations.
protected void
Return a special ChannelPromise which can be reused for different operations.
attr, hasAttr
Modifier and Type
Method
Description
<T> boolean
-
Field Details
-
active
protected volatile boolean active
-
Method Details
-
-
isCompatible
protected boolean isCompatible(EventLoop loop)
Return true if the given EventLoop is compatible with this instance.
-
-
newUnsafe
protected io.netty.channel.kqueue.AbstractKQueueChannel.AbstractKQueueUnsafe newUnsafe()
-
-
-
-
-
isActive
public boolean isActive()
Description copied from interface: Channel
Return true if the Channel is active and so connected.
- Specified by:
isActive in interface Channel
-
-
-
isOpen
public boolean isOpen()
Description copied from interface: Channel
Returns true if the Channel is open and may get active later
- Specified by:
isOpen in interface Channel
-
-
-
-
config
Description copied from interface: Channel
Returns the configuration of this channel.
- Specified by:
config in interface Channel
-
newDirectBuffer
Returns an off-heap copy of the specified ByteBuf, and releases the original one.
-
newDirectBuffer
Returns an off-heap copy of the specified ByteBuf, and releases the specified holder.
The caller must ensure that the holder releases the original ByteBuf when the holder is released by
this method.
-
-
-
-
-
-
|