| Modifier and Type | Class and Description |
|---|---|
| private class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private WritableByteChannel | |
| private static final String | |
| private final Runnable | |
| private static final InternalLogger | |
| private static final ChannelMetadata |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected final void | doShutdownOutput()
Overrides io. |
| protected void | doWrite(ChannelOutboundBuffer in)
Implements abstract io. |
| private int | Returns: The value that should be decremented from the write quantum which starts atChannelConfig#getWriteSpinCount(). The typical use cases are as follows:
the collection which contains objects to write. in)Attempt to write multiple |
| protected int | Returns: The value that should be decremented from the write quantum which starts atChannelConfig#getWriteSpinCount(). The typical use cases are as follows:
the collection which contains objects to write. in)Attempt to write a single object. |
| protected Object | filterOutboundMessage(Object msg)
Overrides io. ChannelOutboundBuffer of this AbstractChannel, so that
the Channel implementation converts the message to another.
|
| public boolean | isInputShutdown()
Implements io. true if and only if the remote peer shut down its output so that no more
data is received from this channel.
|
| public boolean | |
| public boolean | isShutdown()
Implements io. |
| public ChannelMetadata | metadata()
Overrides io. Implements io. ChannelMetadata of the Channel which describe the nature of the Channel.
|
| protected AbstractKQueueChannel. | newUnsafe()
Implements abstract io. AbstractUnsafe instance which will be used for the life-time of the Channel
|
| public ChannelFuture | shutdown()
Implements io. |
| public ChannelFuture | shutdown(final ChannelPromise
will be completed when both shutdown operations complete. promise)Implements io. |
| private static void | shutdownDone(ChannelFuture shutdownOutputFuture, ChannelFuture shutdownInputFuture, ChannelPromise promise)
|
| public ChannelFuture | |
| public ChannelFuture | shutdownInput(final ChannelPromise promise)
Implements io. ChannelPromise.
|
| private void | |
| public ChannelFuture | |
| public ChannelFuture | shutdownOutput(final ChannelPromise promise)
Implements io. ChannelPromise.
|
| private void | |
| private int | Returns: The value that should be decremented from the write quantum which starts atChannelConfig#getWriteSpinCount(). The typical use cases are as follows:
the collection which contains objects to write. in, ByteBuf the buf)ByteBuf from which the bytes should be writtenWrite bytes form the given |
| private int | Returns: The value that should be decremented from the write quantum which starts atChannelConfig#getWriteSpinCount(). The typical use cases are as follows:
the collection which contains objects to write. in, IovArray The array which contains the content to write. array)Write multiple bytes via |
| private int | Returns: The value that should be decremented from the write quantum which starts atChannelConfig#getWriteSpinCount(). The typical use cases are as follows:
the collection which contains objects to write. in, ByteBuffer[] The buffers to write. nioBuffers, int The number of buffers to write. nioBufferCnt, long The number of bytes we expect to write. expectedWrittenBytes, long The maximum number of bytes we should attempt to write. maxBytesPerGatheringWrite)Write multiple bytes via |
| private int | Returns: The value that should be decremented from the write quantum which starts atChannelConfig#getWriteSpinCount(). The typical use cases are as follows:
the collection which contains objects to write. in, DefaultFileRegion the region)DefaultFileRegion from which the bytes should be writtenWrite a |
| private int | Returns: The value that should be decremented from the write quantum which starts atChannelConfig#getWriteSpinCount(). The typical use cases are as follows:
the collection which contains objects to write. in, FileRegion the region)FileRegion from which the bytes should be writtenWrite a |
| byteChannel | back to summary |
|---|---|
| private WritableByteChannel byteChannel | |
| EXPECTED_TYPES | back to summary |
|---|---|
| private static final String EXPECTED_TYPES | |
| flushTask | back to summary |
|---|---|
| private final Runnable flushTask | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| METADATA | back to summary |
|---|---|
| private static final ChannelMetadata METADATA Hides io. | |
| AbstractKQueueStreamChannel | back to summary |
|---|---|
| pack-priv AbstractKQueueStreamChannel(Channel parent, BsdSocket fd, boolean active) | |
| AbstractKQueueStreamChannel | back to summary |
|---|---|
| pack-priv AbstractKQueueStreamChannel(Channel parent, BsdSocket fd, SocketAddress remote) | |
| AbstractKQueueStreamChannel | back to summary |
|---|---|
| pack-priv AbstractKQueueStreamChannel(BsdSocket fd) | |
| adjustMaxBytesPerGatheringWrite | back to summary |
|---|---|
| private void adjustMaxBytesPerGatheringWrite(long attempted, long written, long oldMaxBytesPerGatheringWrite) | |
| doShutdownOutput | back to summary |
|---|---|
| protected final void doShutdownOutput() throws Exception Overrides io. Doc from io. Called when conditions justify shutting down the output portion of the channel. This may happen if a write operation throws an exception.
| |
| doWrite | back to summary |
|---|---|
| protected void doWrite(ChannelOutboundBuffer in) throws Exception Implements abstract io. Doc from io. Flush the content of the given buffer to the remote peer.
| |
| doWriteMultiple | back to summary |
|---|---|
| private int doWriteMultiple(ChannelOutboundBuffer in) throws Exception Attempt to write multiple
| |
| doWriteSingle | back to summary |
|---|---|
| protected int doWriteSingle(ChannelOutboundBuffer in) throws Exception Attempt to write a single object.
| |
| filterOutboundMessage | back to summary |
|---|---|
| protected Object filterOutboundMessage(Object msg) Overrides io. Doc from io. Invoked when a new message is added to a
| |
| isInputShutdown | back to summary |
|---|---|
| public boolean isInputShutdown() Implements io. Doc from io. Returns
| |
| isOutputShutdown | back to summary |
|---|---|
| public boolean isOutputShutdown() Implements io.
| |
| isShutdown | back to summary |
|---|---|
| public boolean isShutdown() Implements io. Doc from io. Determine if both the input and output of this channel have been shutdown.
| |
| metadata | back to summary |
|---|---|
| public ChannelMetadata metadata() Overrides io. Implements io. Doc from io. Return the
| |
| newUnsafe | back to summary |
|---|---|
| protected AbstractKQueueChannel. Implements abstract io. Doc from io. Create a new
| |
| shutdown | back to summary |
|---|---|
| public ChannelFuture shutdown() Implements io. Doc from io. Will shutdown the input and output sides of this channel.
| |
| shutdown | back to summary |
|---|---|
| public ChannelFuture shutdown(final ChannelPromise promise) Implements io. Doc from io. Will shutdown the input and output sides of this channel.
| |
| shutdownDone | back to summary |
|---|---|
| private static void shutdownDone(ChannelFuture shutdownOutputFuture, ChannelFuture shutdownInputFuture, ChannelPromise promise) | |
| shutdownInput | back to summary |
|---|---|
| public ChannelFuture shutdownInput() Implements io.
| |
| shutdownInput | back to summary |
|---|---|
| public ChannelFuture shutdownInput(final ChannelPromise promise) Implements io. Doc from io. Will shutdown the input and notify
| |
| shutdownInput0 | back to summary |
|---|---|
| private void shutdownInput0(ChannelPromise promise) | |
| shutdownOutput | back to summary |
|---|---|
| public ChannelFuture shutdownOutput() Implements io.
| |
| shutdownOutput | back to summary |
|---|---|
| public ChannelFuture shutdownOutput(final ChannelPromise promise) Implements io. Doc from io. Will shutdown the output and notify
| |
| shutdownOutputDone | back to summary |
|---|---|
| private void shutdownOutputDone(final ChannelFuture shutdownOutputFuture, final ChannelPromise promise) | |
| writeBytes | back to summary |
|---|---|
| private int writeBytes(ChannelOutboundBuffer in, ByteBuf buf) throws Exception Write bytes form the given
| |
| writeBytesMultiple | back to summary |
|---|---|
| private int writeBytesMultiple(ChannelOutboundBuffer in, IovArray array) throws IOException Write multiple bytes via
| |
| writeBytesMultiple | back to summary |
|---|---|
| private int writeBytesMultiple(ChannelOutboundBuffer in, ByteBuffer[] nioBuffers, int nioBufferCnt, long expectedWrittenBytes, long maxBytesPerGatheringWrite) throws IOException Write multiple bytes via
| |
| writeDefaultFileRegion | back to summary |
|---|---|
| private int writeDefaultFileRegion(ChannelOutboundBuffer in, DefaultFileRegion region) throws Exception Write a
| |
| writeFileRegion | back to summary |
|---|---|
| private int writeFileRegion(ChannelOutboundBuffer in, FileRegion region) throws Exception Write a
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected ByteBufAllocator |
| KQueueSocketWritableByteChannel | back to summary |
|---|---|
| pack-priv KQueueSocketWritableByteChannel() | |
| alloc | back to summary |
|---|---|
| protected ByteBufAllocator alloc() Implements abstract io.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | handleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, Throwable cause, boolean close, KQueueRecvByteAllocatorHandle allocHandle)
Deprecated
as a consequence of
KQueueRecvByteAllocatorHandle being deprecated.
|
| protected Executor | prepareToClose()
Overrides io. Channel.
|
| pack-priv void | readReady(final KQueueRecvByteAllocatorHandle allocHandle)
Implements abstract io.
Deprecated
as a consequence of
KQueueRecvByteAllocatorHandle being deprecated.
|
| KQueueStreamUnsafe | back to summary |
|---|---|
| pack-priv KQueueStreamUnsafe() | |
| handleReadException | back to summary |
|---|---|
| private void handleReadException(ChannelPipeline pipeline, ByteBuf byteBuf, Throwable cause, boolean close, KQueueRecvByteAllocatorHandle allocHandle)
Deprecated as a consequence of | |
| prepareToClose | back to summary |
|---|---|
| protected Executor prepareToClose() Overrides io. Doc from io. Prepares to close the
| |
| readReady | back to summary |
|---|---|
| pack-priv void readReady(final KQueueRecvByteAllocatorHandle allocHandle) Implements abstract io. Deprecated as a consequence of
| |