@UnstableApi
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, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptions, validate
public Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
getOptions
in interface io.netty.channel.ChannelConfig
getOptions
in class io.netty.channel.DefaultChannelConfig
public <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption
in interface io.netty.channel.ChannelConfig
getOption
in class io.netty.channel.DefaultChannelConfig
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value)
setOption
in interface io.netty.channel.ChannelConfig
setOption
in class io.netty.channel.DefaultChannelConfig
public 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.ChannelConfig
setConnectTimeoutMillis
in class io.netty.channel.DefaultChannelConfig
@Deprecated public KQueueChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead
in interface io.netty.channel.ChannelConfig
setMaxMessagesPerRead
in class io.netty.channel.DefaultChannelConfig
public KQueueChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount
in interface io.netty.channel.ChannelConfig
setWriteSpinCount
in class io.netty.channel.DefaultChannelConfig
public KQueueChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator
in interface io.netty.channel.ChannelConfig
setAllocator
in class io.netty.channel.DefaultChannelConfig
public KQueueChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator
in interface io.netty.channel.ChannelConfig
setRecvByteBufAllocator
in class io.netty.channel.DefaultChannelConfig
public KQueueChannelConfig setAutoRead(boolean autoRead)
setAutoRead
in interface io.netty.channel.ChannelConfig
setAutoRead
in class io.netty.channel.DefaultChannelConfig
@Deprecated public KQueueChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferHighWaterMark
in class io.netty.channel.DefaultChannelConfig
@Deprecated public KQueueChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferLowWaterMark
in class io.netty.channel.DefaultChannelConfig
public KQueueChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferWaterMark
in class io.netty.channel.DefaultChannelConfig
public KQueueChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator
in interface io.netty.channel.ChannelConfig
setMessageSizeEstimator
in class io.netty.channel.DefaultChannelConfig
protected final void autoReadCleared()
autoReadCleared
in class io.netty.channel.DefaultChannelConfig
Copyright © 2008–2021 The Netty Project. All rights reserved.