Package io.netty.channel.kqueue
Class KQueueChannelConfig
- java.lang.Object
-
- io.netty.channel.DefaultChannelConfig
-
- io.netty.channel.kqueue.KQueueChannelConfig
-
- All Implemented Interfaces:
io.netty.channel.ChannelConfig
- Direct Known Subclasses:
KQueueDatagramChannelConfig,KQueueDomainSocketChannelConfig,KQueueServerChannelConfig,KQueueSocketChannelConfig
@UnstableApi public class KQueueChannelConfig extends io.netty.channel.DefaultChannelConfig
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidautoReadCleared()<T> TgetOption(io.netty.channel.ChannelOption<T> option)java.util.Map<io.netty.channel.ChannelOption<?>,java.lang.Object>getOptions()booleangetRcvAllocTransportProvidesGuess()If this istruethen theRecvByteBufAllocator.Handle.guess()will be overridden to always attempt to read as many bytes as kqueue says are available.KQueueChannelConfigsetAllocator(io.netty.buffer.ByteBufAllocator allocator)KQueueChannelConfigsetAutoRead(boolean autoRead)KQueueChannelConfigsetConnectTimeoutMillis(int connectTimeoutMillis)KQueueChannelConfigsetMaxMessagesPerRead(int maxMessagesPerRead)Deprecated.KQueueChannelConfigsetMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)<T> booleansetOption(io.netty.channel.ChannelOption<T> option, T value)KQueueChannelConfigsetRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)If this istruethen theRecvByteBufAllocator.Handle.guess()will be overridden to always attempt to read as many bytes as kqueue says are available.KQueueChannelConfigsetRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)KQueueChannelConfigsetWriteBufferHighWaterMark(int writeBufferHighWaterMark)Deprecated.KQueueChannelConfigsetWriteBufferLowWaterMark(int writeBufferLowWaterMark)Deprecated.KQueueChannelConfigsetWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)KQueueChannelConfigsetWriteSpinCount(int writeSpinCount)-
Methods inherited from class io.netty.channel.DefaultChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptions, validate
-
-
-
-
Method Detail
-
getOptions
public java.util.Map<io.netty.channel.ChannelOption<?>,java.lang.Object> getOptions()
- Specified by:
getOptionsin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionsin classio.netty.channel.DefaultChannelConfig
-
getOption
public <T> T getOption(io.netty.channel.ChannelOption<T> option)
- Specified by:
getOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionin classio.netty.channel.DefaultChannelConfig
-
setOption
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value)- Specified by:
setOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
setOptionin classio.netty.channel.DefaultChannelConfig
-
setRcvAllocTransportProvidesGuess
public KQueueChannelConfig setRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)
If this istruethen theRecvByteBufAllocator.Handle.guess()will be overridden to always attempt to read as many bytes as kqueue says are available.
-
getRcvAllocTransportProvidesGuess
public boolean getRcvAllocTransportProvidesGuess()
If this istruethen theRecvByteBufAllocator.Handle.guess()will be overridden to always attempt to read as many bytes as kqueue says are available.
-
setConnectTimeoutMillis
public KQueueChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.ChannelConfig- Overrides:
setConnectTimeoutMillisin classio.netty.channel.DefaultChannelConfig
-
setMaxMessagesPerRead
@Deprecated public KQueueChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.ChannelConfig- Overrides:
setMaxMessagesPerReadin classio.netty.channel.DefaultChannelConfig
-
setWriteSpinCount
public KQueueChannelConfig setWriteSpinCount(int writeSpinCount)
- Specified by:
setWriteSpinCountin interfaceio.netty.channel.ChannelConfig- Overrides:
setWriteSpinCountin classio.netty.channel.DefaultChannelConfig
-
setAllocator
public KQueueChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
- Specified by:
setAllocatorin interfaceio.netty.channel.ChannelConfig- Overrides:
setAllocatorin classio.netty.channel.DefaultChannelConfig
-
setRecvByteBufAllocator
public KQueueChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
- Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.ChannelConfig- Overrides:
setRecvByteBufAllocatorin classio.netty.channel.DefaultChannelConfig
-
setAutoRead
public KQueueChannelConfig setAutoRead(boolean autoRead)
- Specified by:
setAutoReadin interfaceio.netty.channel.ChannelConfig- Overrides:
setAutoReadin classio.netty.channel.DefaultChannelConfig
-
setWriteBufferHighWaterMark
@Deprecated public KQueueChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.- Specified by:
setWriteBufferHighWaterMarkin interfaceio.netty.channel.ChannelConfig- Overrides:
setWriteBufferHighWaterMarkin classio.netty.channel.DefaultChannelConfig
-
setWriteBufferLowWaterMark
@Deprecated public KQueueChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.- Specified by:
setWriteBufferLowWaterMarkin interfaceio.netty.channel.ChannelConfig- Overrides:
setWriteBufferLowWaterMarkin classio.netty.channel.DefaultChannelConfig
-
setWriteBufferWaterMark
public KQueueChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
- Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.ChannelConfig- Overrides:
setWriteBufferWaterMarkin classio.netty.channel.DefaultChannelConfig
-
setMessageSizeEstimator
public KQueueChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
- Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.ChannelConfig- Overrides:
setMessageSizeEstimatorin classio.netty.channel.DefaultChannelConfig
-
autoReadCleared
protected final void autoReadCleared()
- Overrides:
autoReadClearedin classio.netty.channel.DefaultChannelConfig
-
-