public final class EpollServerSocketChannelConfig extends EpollServerChannelConfig implements io.netty.channel.socket.ServerSocketChannelConfig
channel| Modifier and Type | Method and Description |
|---|---|
<T> T |
getOption(io.netty.channel.ChannelOption<T> option) |
Map<io.netty.channel.ChannelOption<?>,Object> |
getOptions() |
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) |
getBacklog, getReceiveBufferSize, isReuseAddress, setEpollModeautoReadCleared, getEpollModegetAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptions, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBacklog, getReceiveBufferSize, isReuseAddressgetAllocator, 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 EpollServerChannelConfigpublic <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption in interface io.netty.channel.ChannelConfiggetOption in class EpollServerChannelConfigpublic <T> boolean setOption(io.netty.channel.ChannelOption<T> option,
T value)
setOption in interface io.netty.channel.ChannelConfigsetOption in class EpollServerChannelConfigpublic EpollServerSocketChannelConfig setReuseAddress(boolean reuseAddress)
setReuseAddress in interface io.netty.channel.socket.ServerSocketChannelConfigsetReuseAddress in class EpollServerChannelConfigpublic EpollServerSocketChannelConfig setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize in interface io.netty.channel.socket.ServerSocketChannelConfigsetReceiveBufferSize in class EpollServerChannelConfigpublic EpollServerSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences in interface io.netty.channel.socket.ServerSocketChannelConfigpublic EpollServerSocketChannelConfig setBacklog(int backlog)
setBacklog in interface io.netty.channel.socket.ServerSocketChannelConfigsetBacklog in class EpollServerChannelConfigpublic EpollServerSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis in interface io.netty.channel.ChannelConfigsetConnectTimeoutMillis in interface io.netty.channel.socket.ServerSocketChannelConfigsetConnectTimeoutMillis in class EpollServerChannelConfigpublic EpollServerSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead in interface io.netty.channel.ChannelConfigsetMaxMessagesPerRead in interface io.netty.channel.socket.ServerSocketChannelConfigsetMaxMessagesPerRead in class EpollServerChannelConfigpublic EpollServerSocketChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount in interface io.netty.channel.ChannelConfigsetWriteSpinCount in interface io.netty.channel.socket.ServerSocketChannelConfigsetWriteSpinCount in class EpollServerChannelConfigpublic EpollServerSocketChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator in interface io.netty.channel.ChannelConfigsetAllocator in interface io.netty.channel.socket.ServerSocketChannelConfigsetAllocator in class EpollServerChannelConfigpublic EpollServerSocketChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator in interface io.netty.channel.ChannelConfigsetRecvByteBufAllocator in interface io.netty.channel.socket.ServerSocketChannelConfigsetRecvByteBufAllocator in class EpollServerChannelConfigpublic EpollServerSocketChannelConfig setAutoRead(boolean autoRead)
setAutoRead in interface io.netty.channel.ChannelConfigsetAutoRead in interface io.netty.channel.socket.ServerSocketChannelConfigsetAutoRead in class EpollServerChannelConfigpublic EpollServerSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferHighWaterMark in class EpollServerChannelConfigpublic EpollServerSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferLowWaterMark in class EpollServerChannelConfigpublic EpollServerSocketChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator in interface io.netty.channel.ChannelConfigsetMessageSizeEstimator in interface io.netty.channel.socket.ServerSocketChannelConfigsetMessageSizeEstimator in class EpollServerChannelConfigpublic 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.Copyright © 2008–2015 The Netty Project. All rights reserved.