public final class EpollServerSocketChannelConfig
extends io.netty.channel.DefaultChannelConfig
implements io.netty.channel.socket.ServerSocketChannelConfig
| Modifier and Type | Method and Description |
|---|---|
protected void |
autoReadCleared() |
int |
getBacklog() |
<T> T |
getOption(io.netty.channel.ChannelOption<T> option) |
Map<io.netty.channel.ChannelOption<?>,Object> |
getOptions() |
int |
getReceiveBufferSize() |
boolean |
isReuseAddress() |
boolean |
isReusePort()
Returns
true if the SO_REUSEPORT option is set. |
EpollServerSocketChannelConfig |
setAllocator(io.netty.buffer.ByteBufAllocator allocator) |
EpollServerSocketChannelConfig |
setAutoRead(boolean autoRead) |
EpollServerSocketChannelConfig |
setBacklog(int backlog) |
EpollServerSocketChannelConfig |
setConnectTimeoutMillis(int connectTimeoutMillis) |
EpollServerSocketChannelConfig |
setMaxMessagesPerRead(int maxMessagesPerRead) |
EpollServerSocketChannelConfig |
setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) |
<T> boolean |
setOption(io.netty.channel.ChannelOption<T> option,
T value) |
EpollServerSocketChannelConfig |
setPerformancePreferences(int connectionTime,
int latency,
int bandwidth) |
EpollServerSocketChannelConfig |
setReceiveBufferSize(int receiveBufferSize) |
EpollServerSocketChannelConfig |
setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) |
EpollServerSocketChannelConfig |
setReuseAddress(boolean reuseAddress) |
EpollServerSocketChannelConfig |
setReusePort(boolean reusePort)
Set the SO_REUSEPORT option on the underlying Channel.
|
EpollServerSocketChannelConfig |
setWriteBufferHighWaterMark(int writeBufferHighWaterMark) |
EpollServerSocketChannelConfig |
setWriteBufferLowWaterMark(int writeBufferLowWaterMark) |
EpollServerSocketChannelConfig |
setWriteSpinCount(int writeSpinCount) |
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptions, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptionspublic 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 boolean isReuseAddress()
isReuseAddress in interface io.netty.channel.socket.ServerSocketChannelConfigpublic EpollServerSocketChannelConfig setReuseAddress(boolean reuseAddress)
setReuseAddress in interface io.netty.channel.socket.ServerSocketChannelConfigpublic int getReceiveBufferSize()
getReceiveBufferSize in interface io.netty.channel.socket.ServerSocketChannelConfigpublic EpollServerSocketChannelConfig setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize in interface io.netty.channel.socket.ServerSocketChannelConfigpublic EpollServerSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences in interface io.netty.channel.socket.ServerSocketChannelConfigpublic int getBacklog()
getBacklog in interface io.netty.channel.socket.ServerSocketChannelConfigpublic EpollServerSocketChannelConfig setBacklog(int backlog)
setBacklog in interface io.netty.channel.socket.ServerSocketChannelConfigpublic EpollServerSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis in interface io.netty.channel.ChannelConfigsetConnectTimeoutMillis in interface io.netty.channel.socket.ServerSocketChannelConfigsetConnectTimeoutMillis in class io.netty.channel.DefaultChannelConfigpublic EpollServerSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead in interface io.netty.channel.ChannelConfigsetMaxMessagesPerRead in interface io.netty.channel.socket.ServerSocketChannelConfigsetMaxMessagesPerRead in class io.netty.channel.DefaultChannelConfigpublic EpollServerSocketChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount in interface io.netty.channel.ChannelConfigsetWriteSpinCount in interface io.netty.channel.socket.ServerSocketChannelConfigsetWriteSpinCount in class io.netty.channel.DefaultChannelConfigpublic EpollServerSocketChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator in interface io.netty.channel.ChannelConfigsetAllocator in interface io.netty.channel.socket.ServerSocketChannelConfigsetAllocator in class io.netty.channel.DefaultChannelConfigpublic EpollServerSocketChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator in interface io.netty.channel.ChannelConfigsetRecvByteBufAllocator in interface io.netty.channel.socket.ServerSocketChannelConfigsetRecvByteBufAllocator in class io.netty.channel.DefaultChannelConfigpublic EpollServerSocketChannelConfig setAutoRead(boolean autoRead)
setAutoRead in interface io.netty.channel.ChannelConfigsetAutoRead in interface io.netty.channel.socket.ServerSocketChannelConfigsetAutoRead in class io.netty.channel.DefaultChannelConfigpublic EpollServerSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferHighWaterMark in class io.netty.channel.DefaultChannelConfigpublic EpollServerSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferLowWaterMark in class io.netty.channel.DefaultChannelConfigpublic EpollServerSocketChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator in interface io.netty.channel.ChannelConfigsetMessageSizeEstimator in interface io.netty.channel.socket.ServerSocketChannelConfigsetMessageSizeEstimator in class io.netty.channel.DefaultChannelConfigpublic boolean isReusePort()
true if the SO_REUSEPORT option is set.public EpollServerSocketChannelConfig setReusePort(boolean reusePort)
EpollSocketChannels to the same port and so accept connections with multiple threads.
Be aware this method needs be called before AbstractChannel.bind(java.net.SocketAddress) to have
any affect.protected void autoReadCleared()
autoReadCleared in class io.netty.channel.DefaultChannelConfigCopyright © 2008–2014 The Netty Project. All rights reserved.