ChannelConfig for a DuplexChannel.
ChannelConfig,
DuplexChannelConfig allows the following options in the option map:
ChannelOption#ALLOW_HALF_CLOSURE | setAllowHalfClosure(boolean) |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isAllowHalfClosure()
Returns |
| public DuplexChannelConfig | setAllocator(ByteBufAllocator allocator)
Redeclares io. ByteBufAllocator which is used for the channel
to allocate buffers.
|
| public DuplexChannelConfig | setAllowHalfClosure(boolean allowHalfClosure)
Sets whether the channel should not close itself when its remote peer shuts down output to make the connection half-closed. |
| public DuplexChannelConfig | setAutoClose(boolean autoClose)
Redeclares io. Channel should be closed automatically and immediately on write failure.
|
| public DuplexChannelConfig | setAutoRead(boolean autoRead)
Redeclares io. ChannelHandlerContext#read() will be invoked automatically so that a user application doesn't
need to call it at all.
|
| public DuplexChannelConfig | setMaxMessagesPerRead(int maxMessagesPerRead)
Redeclares io.
Deprecated
|
| public DuplexChannelConfig | setMessageSizeEstimator(MessageSizeEstimator estimator)
Redeclares io. MessageSizeEstimator which is used for the channel
to detect the size of a message.
|
| public DuplexChannelConfig | setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Redeclares io. RecvByteBufAllocator which is used for the channel to allocate receive buffers.
|
| public DuplexChannelConfig | setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)
Redeclares io. WriteBufferWaterMark which is used for setting the high and low
water mark of the write buffer.
|
| public DuplexChannelConfig | setWriteSpinCount(int writeSpinCount)
Redeclares io. WritableByteChannel#write(ByteBuffer) returns a non-zero value.
|
| isAllowHalfClosure | back to summary |
|---|---|
| public boolean isAllowHalfClosure() Returns | |
| setAllocator | back to summary |
|---|---|
| public DuplexChannelConfig setAllocator(ByteBufAllocator allocator) Redeclares io. Doc from io. Set the
| |
| setAllowHalfClosure | back to summary |
|---|---|
| public DuplexChannelConfig setAllowHalfClosure(boolean allowHalfClosure) Sets whether the channel should not close itself when its remote peer shuts down output to
make the connection half-closed. If | |
| setAutoClose | back to summary |
|---|---|
| public DuplexChannelConfig setAutoClose(boolean autoClose) Redeclares io. Doc from io. Sets whether the
| |
| setAutoRead | back to summary |
|---|---|
| public DuplexChannelConfig setAutoRead(boolean autoRead) Redeclares io. Doc from io. Sets if
| |
| setMaxMessagesPerRead | back to summary |
|---|---|
| public DuplexChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead) Redeclares io. Deprecated
| |
| setMessageSizeEstimator | back to summary |
|---|---|
| public DuplexChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator) Redeclares io. Doc from io. Set the
| |
| setRecvByteBufAllocator | back to summary |
|---|---|
| public DuplexChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator) Redeclares io. Doc from io. Set the
| |
| setWriteBufferWaterMark | back to summary |
|---|---|
| public DuplexChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark) Redeclares io. Doc from io. Set the
| |
| setWriteSpinCount | back to summary |
|---|---|
| public DuplexChannelConfig setWriteSpinCount(int writeSpinCount) Redeclares io. Doc from io. Sets the maximum loop count for a write operation until
| |