Package io.netty.channel.kqueue
Class KQueueServerChannelConfig
java.lang.Object
io.netty.channel.DefaultChannelConfig
io.netty.channel.kqueue.KQueueChannelConfig
io.netty.channel.kqueue.KQueueServerChannelConfig
- All Implemented Interfaces:
io.netty.channel.ChannelConfig,io.netty.channel.socket.ServerSocketChannelConfig
- Direct Known Subclasses:
KQueueServerSocketChannelConfig
@UnstableApi
public class KQueueServerChannelConfig
extends KQueueChannelConfig
implements io.netty.channel.socket.ServerSocketChannelConfig
-
Field Summary
Fields inherited from class io.netty.channel.DefaultChannelConfig
channel -
Method Summary
Modifier and TypeMethodDescriptionint<T> TgetOption(io.netty.channel.ChannelOption<T> option) intbooleanbooleanReturnstrueif TCP FastOpen is enabled.setAllocator(io.netty.buffer.ByteBufAllocator allocator) setAutoRead(boolean autoRead) setBacklog(int backlog) setConnectTimeoutMillis(int connectTimeoutMillis) setMaxMessagesPerRead(int maxMessagesPerRead) Deprecated.setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) <T> booleansetOption(io.netty.channel.ChannelOption<T> option, T value) setPerformancePreferences(int connectionTime, int latency, int bandwidth) 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.setReceiveBufferSize(int receiveBufferSize) setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) setReuseAddress(boolean reuseAddress) setTcpFastOpen(boolean enableTcpFastOpen) Enables TCP FastOpen on the server channel.setWriteBufferHighWaterMark(int writeBufferHighWaterMark) Deprecated.setWriteBufferLowWaterMark(int writeBufferLowWaterMark) Deprecated.setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark) setWriteSpinCount(int writeSpinCount) Methods inherited from class io.netty.channel.kqueue.KQueueChannelConfig
autoReadCleared, getRcvAllocTransportProvidesGuessMethods inherited from class io.netty.channel.DefaultChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setMaxMessagesPerWrite, setOptions, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptions
-
Method Details
-
getOptions
- Specified by:
getOptionsin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionsin classKQueueChannelConfig
-
getOption
public <T> T getOption(io.netty.channel.ChannelOption<T> option) - Specified by:
getOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionin classKQueueChannelConfig
-
setOption
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value) - Specified by:
setOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
setOptionin classKQueueChannelConfig
-
isReuseAddress
public boolean isReuseAddress()- Specified by:
isReuseAddressin interfaceio.netty.channel.socket.ServerSocketChannelConfig
-
setReuseAddress
- Specified by:
setReuseAddressin interfaceio.netty.channel.socket.ServerSocketChannelConfig
-
getReceiveBufferSize
public int getReceiveBufferSize()- Specified by:
getReceiveBufferSizein interfaceio.netty.channel.socket.ServerSocketChannelConfig
-
setReceiveBufferSize
- Specified by:
setReceiveBufferSizein interfaceio.netty.channel.socket.ServerSocketChannelConfig
-
getBacklog
public int getBacklog()- Specified by:
getBacklogin interfaceio.netty.channel.socket.ServerSocketChannelConfig
-
setBacklog
- Specified by:
setBacklogin interfaceio.netty.channel.socket.ServerSocketChannelConfig
-
isTcpFastOpen
public boolean isTcpFastOpen()Returnstrueif TCP FastOpen is enabled.- See Also:
-
setTcpFastOpen
Enables TCP FastOpen on the server channel. If the underlying os doesn't support TCP_FASTOPEN setting this has no effect. This has to be set before doing listen on the socket otherwise this takes no effect.- Parameters:
enableTcpFastOpen-trueif TCP FastOpen should be enabled for incomming connections.- See Also:
-
setRcvAllocTransportProvidesGuess
Description copied from class:KQueueChannelConfigIf this istruethen theRecvByteBufAllocator.Handle.guess()will be overridden to always attempt to read as many bytes as kqueue says are available.- Overrides:
setRcvAllocTransportProvidesGuessin classKQueueChannelConfig
-
setPerformancePreferences
public KQueueServerChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth) - Specified by:
setPerformancePreferencesin interfaceio.netty.channel.socket.ServerSocketChannelConfig
-
setConnectTimeoutMillis
- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.ChannelConfig- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setConnectTimeoutMillisin classKQueueChannelConfig
-
setMaxMessagesPerRead
Deprecated.- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.ChannelConfig- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setMaxMessagesPerReadin classKQueueChannelConfig
-
setWriteSpinCount
- Specified by:
setWriteSpinCountin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteSpinCountin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setWriteSpinCountin classKQueueChannelConfig
-
setAllocator
- Specified by:
setAllocatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setAllocatorin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setAllocatorin classKQueueChannelConfig
-
setRecvByteBufAllocator
public KQueueServerChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) - Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setRecvByteBufAllocatorin classKQueueChannelConfig
-
setAutoRead
- Specified by:
setAutoReadin interfaceio.netty.channel.ChannelConfig- Specified by:
setAutoReadin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setAutoReadin classKQueueChannelConfig
-
setWriteBufferHighWaterMark
@Deprecated public KQueueServerChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark) Deprecated.- Specified by:
setWriteBufferHighWaterMarkin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteBufferHighWaterMarkin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setWriteBufferHighWaterMarkin classKQueueChannelConfig
-
setWriteBufferLowWaterMark
@Deprecated public KQueueServerChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark) Deprecated.- Specified by:
setWriteBufferLowWaterMarkin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteBufferLowWaterMarkin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setWriteBufferLowWaterMarkin classKQueueChannelConfig
-
setWriteBufferWaterMark
public KQueueServerChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark) - Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setWriteBufferWaterMarkin classKQueueChannelConfig
-
setMessageSizeEstimator
public KQueueServerChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) - Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setMessageSizeEstimatorin classKQueueChannelConfig
-