Package io.netty.channel.kqueue
Class KQueueServerSocketChannelConfig
- java.lang.Object
-
- io.netty.channel.DefaultChannelConfig
-
- io.netty.channel.kqueue.KQueueChannelConfig
-
- io.netty.channel.kqueue.KQueueServerChannelConfig
-
- io.netty.channel.kqueue.KQueueServerSocketChannelConfig
-
- All Implemented Interfaces:
io.netty.channel.ChannelConfig,io.netty.channel.socket.ServerSocketChannelConfig
@UnstableApi public class KQueueServerSocketChannelConfig extends KQueueServerChannelConfig implements io.netty.channel.socket.ServerSocketChannelConfig
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AcceptFiltergetAcceptFilter()<T> TgetOption(io.netty.channel.ChannelOption<T> option)java.util.Map<io.netty.channel.ChannelOption<?>,java.lang.Object>getOptions()booleanisReusePort()KQueueServerSocketChannelConfigsetAcceptFilter(AcceptFilter acceptFilter)KQueueServerSocketChannelConfigsetAllocator(io.netty.buffer.ByteBufAllocator allocator)KQueueServerSocketChannelConfigsetAutoRead(boolean autoRead)KQueueServerSocketChannelConfigsetBacklog(int backlog)KQueueServerSocketChannelConfigsetConnectTimeoutMillis(int connectTimeoutMillis)KQueueServerSocketChannelConfigsetMaxMessagesPerRead(int maxMessagesPerRead)Deprecated.KQueueServerSocketChannelConfigsetMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)<T> booleansetOption(io.netty.channel.ChannelOption<T> option, T value)KQueueServerSocketChannelConfigsetPerformancePreferences(int connectionTime, int latency, int bandwidth)KQueueServerSocketChannelConfigsetRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)If this istruethen theRecvByteBufAllocator.Handle.guess()will be overridden to always attempt to read as many bytes as kqueue says are available.KQueueServerSocketChannelConfigsetReceiveBufferSize(int receiveBufferSize)KQueueServerSocketChannelConfigsetRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)KQueueServerSocketChannelConfigsetReuseAddress(boolean reuseAddress)KQueueServerSocketChannelConfigsetReusePort(boolean reusePort)KQueueServerSocketChannelConfigsetWriteBufferHighWaterMark(int writeBufferHighWaterMark)Deprecated.KQueueServerSocketChannelConfigsetWriteBufferLowWaterMark(int writeBufferLowWaterMark)Deprecated.KQueueServerSocketChannelConfigsetWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)KQueueServerSocketChannelConfigsetWriteSpinCount(int writeSpinCount)-
Methods inherited from class io.netty.channel.kqueue.KQueueServerChannelConfig
getBacklog, getReceiveBufferSize, isReuseAddress
-
Methods inherited from class io.netty.channel.kqueue.KQueueChannelConfig
autoReadCleared, getRcvAllocTransportProvidesGuess
-
Methods inherited from class io.netty.channel.DefaultChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptions, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.channel.ChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptions
-
-
-
-
Method Detail
-
getOptions
public java.util.Map<io.netty.channel.ChannelOption<?>,java.lang.Object> getOptions()
- Specified by:
getOptionsin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionsin classKQueueServerChannelConfig
-
getOption
public <T> T getOption(io.netty.channel.ChannelOption<T> option)
- Specified by:
getOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionin classKQueueServerChannelConfig
-
setOption
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value)- Specified by:
setOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
setOptionin classKQueueServerChannelConfig
-
setReusePort
public KQueueServerSocketChannelConfig setReusePort(boolean reusePort)
-
isReusePort
public boolean isReusePort()
-
setAcceptFilter
public KQueueServerSocketChannelConfig setAcceptFilter(AcceptFilter acceptFilter)
-
getAcceptFilter
public AcceptFilter getAcceptFilter()
-
setRcvAllocTransportProvidesGuess
public KQueueServerSocketChannelConfig setRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)
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 classKQueueServerChannelConfig
-
setReuseAddress
public KQueueServerSocketChannelConfig setReuseAddress(boolean reuseAddress)
- Specified by:
setReuseAddressin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setReuseAddressin classKQueueServerChannelConfig
-
setReceiveBufferSize
public KQueueServerSocketChannelConfig setReceiveBufferSize(int receiveBufferSize)
- Specified by:
setReceiveBufferSizein interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setReceiveBufferSizein classKQueueServerChannelConfig
-
setPerformancePreferences
public KQueueServerSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)
- Specified by:
setPerformancePreferencesin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setPerformancePreferencesin classKQueueServerChannelConfig
-
setBacklog
public KQueueServerSocketChannelConfig setBacklog(int backlog)
- Specified by:
setBacklogin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setBacklogin classKQueueServerChannelConfig
-
setConnectTimeoutMillis
public KQueueServerSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.ChannelConfig- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setConnectTimeoutMillisin classKQueueServerChannelConfig
-
setMaxMessagesPerRead
@Deprecated public KQueueServerSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.ChannelConfig- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setMaxMessagesPerReadin classKQueueServerChannelConfig
-
setWriteSpinCount
public KQueueServerSocketChannelConfig setWriteSpinCount(int writeSpinCount)
- Specified by:
setWriteSpinCountin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteSpinCountin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setWriteSpinCountin classKQueueServerChannelConfig
-
setAllocator
public KQueueServerSocketChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
- Specified by:
setAllocatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setAllocatorin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setAllocatorin classKQueueServerChannelConfig
-
setRecvByteBufAllocator
public KQueueServerSocketChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
- Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setRecvByteBufAllocatorin classKQueueServerChannelConfig
-
setAutoRead
public KQueueServerSocketChannelConfig setAutoRead(boolean autoRead)
- Specified by:
setAutoReadin interfaceio.netty.channel.ChannelConfig- Specified by:
setAutoReadin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setAutoReadin classKQueueServerChannelConfig
-
setWriteBufferHighWaterMark
@Deprecated public KQueueServerSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.- Specified by:
setWriteBufferHighWaterMarkin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteBufferHighWaterMarkin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setWriteBufferHighWaterMarkin classKQueueServerChannelConfig
-
setWriteBufferLowWaterMark
@Deprecated public KQueueServerSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.- Specified by:
setWriteBufferLowWaterMarkin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteBufferLowWaterMarkin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setWriteBufferLowWaterMarkin classKQueueServerChannelConfig
-
setWriteBufferWaterMark
public KQueueServerSocketChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
- Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setWriteBufferWaterMarkin classKQueueServerChannelConfig
-
setMessageSizeEstimator
public KQueueServerSocketChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
- Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.socket.ServerSocketChannelConfig- Overrides:
setMessageSizeEstimatorin classKQueueServerChannelConfig
-
-