AbstractNioChannel base class for Channels that operate on messages.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| protected boolean | |
| protected boolean | continueReading(RecvByteBufAllocator.
Deprecated
as a consequence of
RecvByteBufAllocator.Handle being deprecated.
|
| protected void | doBeginRead()
Overrides io. |
| protected abstract int | doReadMessages(List<Object> buf)
Read messages into the given array and return the amount which was read. |
| protected void | doWrite(ChannelOutboundBuffer in)
Implements abstract io. |
| protected abstract boolean | Returns: true if and only if the message has been writtenWrite a message to the underlying |
| protected AbstractNioChannel. | newUnsafe()
Implements abstract io. AbstractUnsafe instance which will be used for the life-time of the Channel
|
| inputShutdown | back to summary |
|---|---|
| pack-priv boolean inputShutdown | |
| AbstractNioMessageChannel | back to summary |
|---|---|
| protected AbstractNioMessageChannel(Channel parent, SelectableChannel ch, int readInterestOp) | |
| closeOnReadError | back to summary |
|---|---|
| protected boolean closeOnReadError(Throwable cause) | |
| continueOnWriteError | back to summary |
|---|---|
| protected boolean continueOnWriteError() Returns | |
| continueReading | back to summary |
|---|---|
| protected boolean continueReading(RecvByteBufAllocator. Deprecated as a consequence of | |
| doBeginRead | back to summary |
|---|---|
| protected void doBeginRead() throws Exception Overrides io. Doc from io. Schedule a read operation.
| |
| doReadMessages | back to summary |
|---|---|
| protected abstract int doReadMessages(List<Object> buf) throws Exception Read messages into the given array and return the amount which was read. | |
| 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.
| |
| doWriteMessage | back to summary |
|---|---|
| protected abstract boolean doWriteMessage(Object msg, ChannelOutboundBuffer in) throws Exception Write a message to the underlying
| |
| newUnsafe | back to summary |
|---|---|
| protected AbstractNioChannel. Implements abstract io. Doc from io. Create a new
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | read()
Implements io. SelectableChannel
|
| readBuf | back to summary |
|---|---|
| private final List<Object> readBuf | |
| NioMessageUnsafe | back to summary |
|---|---|
| private NioMessageUnsafe() | |
| read | back to summary |
|---|---|
| public void read() Implements io. Doc from io. Read from underlying
| |