public class KQueueChannelConfig
extends io.netty.channel.DefaultChannelConfig
| Modifier and Type | Method and Description |
|---|---|
protected void |
autoReadCleared() |
<T> T |
getOption(io.netty.channel.ChannelOption<T> option) |
Map<io.netty.channel.ChannelOption<?>,Object> |
getOptions() |
boolean |
getRcvAllocTransportProvidesGuess()
If this is
true then the RecvByteBufAllocator.Handle#guess() will be overridden to always attempt
to read as many bytes as kqueue says are available. |
KQueueChannelConfig |
setAllocator(io.netty.buffer.ByteBufAllocator allocator) |
KQueueChannelConfig |
setAutoRead(boolean autoRead) |
KQueueChannelConfig |
setConnectTimeoutMillis(int connectTimeoutMillis) |
KQueueChannelConfig |
setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.
|
KQueueChannelConfig |
setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) |
<T> boolean |
setOption(io.netty.channel.ChannelOption<T> option,
T value) |
KQueueChannelConfig |
setRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)
If this is
true then the RecvByteBufAllocator.Handle#guess() will be overridden to always attempt
to read as many bytes as kqueue says are available. |
KQueueChannelConfig |
setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) |
KQueueChannelConfig |
setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.
|
KQueueChannelConfig |
setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.
|
KQueueChannelConfig |
setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark) |
KQueueChannelConfig |
setWriteSpinCount(int writeSpinCount) |
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setMaxMessagesPerWrite, setOptions, validatepublic Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
getOptions in interface io.netty.channel.ChannelConfiggetOptions in class io.netty.channel.DefaultChannelConfigpublic <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption in interface io.netty.channel.ChannelConfiggetOption in class io.netty.channel.DefaultChannelConfigpublic <T> boolean setOption(io.netty.channel.ChannelOption<T> option,
T value)
setOption in interface io.netty.channel.ChannelConfigsetOption in class io.netty.channel.DefaultChannelConfigpublic KQueueChannelConfig setRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)
true then the RecvByteBufAllocator.Handle#guess() will be overridden to always attempt
to read as many bytes as kqueue says are available.public boolean getRcvAllocTransportProvidesGuess()
true then the RecvByteBufAllocator.Handle#guess() will be overridden to always attempt
to read as many bytes as kqueue says are available.public KQueueChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis in interface io.netty.channel.ChannelConfigsetConnectTimeoutMillis in class io.netty.channel.DefaultChannelConfig@Deprecated public KQueueChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead in interface io.netty.channel.ChannelConfigsetMaxMessagesPerRead in class io.netty.channel.DefaultChannelConfigpublic KQueueChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount in interface io.netty.channel.ChannelConfigsetWriteSpinCount in class io.netty.channel.DefaultChannelConfigpublic KQueueChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator in interface io.netty.channel.ChannelConfigsetAllocator in class io.netty.channel.DefaultChannelConfigpublic KQueueChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator in interface io.netty.channel.ChannelConfigsetRecvByteBufAllocator in class io.netty.channel.DefaultChannelConfigpublic KQueueChannelConfig setAutoRead(boolean autoRead)
setAutoRead in interface io.netty.channel.ChannelConfigsetAutoRead in class io.netty.channel.DefaultChannelConfig@Deprecated public KQueueChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferHighWaterMark in class io.netty.channel.DefaultChannelConfig@Deprecated public KQueueChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferLowWaterMark in class io.netty.channel.DefaultChannelConfigpublic KQueueChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferWaterMark in class io.netty.channel.DefaultChannelConfigpublic KQueueChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator in interface io.netty.channel.ChannelConfigsetMessageSizeEstimator in class io.netty.channel.DefaultChannelConfigprotected final void autoReadCleared()
autoReadCleared in class io.netty.channel.DefaultChannelConfigCopyright © 2008–2025 The Netty Project. All rights reserved.