public final class EpollServerSocketChannelConfig extends EpollServerChannelConfig implements io.netty.channel.socket.ServerSocketChannelConfig
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getOption(io.netty.channel.ChannelOption<T> option) |
Map<io.netty.channel.ChannelOption<?>,Object> |
getOptions() |
int |
getTcpDeferAccept()
Returns a positive value if TCP_DEFER_ACCEPT is enabled.
|
boolean |
isFreeBind()
|
boolean |
isIpTransparent()
|
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 |
setFreeBind(boolean freeBind)
|
EpollServerSocketChannelConfig |
setIpTransparent(boolean transparent)
|
EpollServerSocketChannelConfig |
setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.
|
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 |
setTcpDeferAccept(int deferAccept)
Set the
TCP_DEFER_ACCEPT option on the socket. |
EpollServerSocketChannelConfig |
setTcpMd5Sig(Map<InetAddress,byte[]> keys)
Set the
TCP_MD5SIG option on the socket. |
EpollServerSocketChannelConfig |
setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.
|
EpollServerSocketChannelConfig |
setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.
|
EpollServerSocketChannelConfig |
setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark) |
EpollServerSocketChannelConfig |
setWriteSpinCount(int writeSpinCount) |
getBacklog, getReceiveBufferSize, getTcpFastopen, isReuseAddress, setEpollMode, setTcpFastopenautoReadCleared, getEpollModegetAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptions, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBacklog, getReceiveBufferSize, isReuseAddressgetAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, 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.ServerSocketChannelConfigsetPerformancePreferences in class EpollServerChannelConfigpublic 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 EpollServerChannelConfig@Deprecated public 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 EpollServerChannelConfig@Deprecated public EpollServerSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferHighWaterMark in interface io.netty.channel.socket.ServerSocketChannelConfigsetWriteBufferHighWaterMark in class EpollServerChannelConfig@Deprecated public EpollServerSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferLowWaterMark in interface io.netty.channel.socket.ServerSocketChannelConfigsetWriteBufferLowWaterMark in class EpollServerChannelConfigpublic EpollServerSocketChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferWaterMark in interface io.netty.channel.socket.ServerSocketChannelConfigsetWriteBufferWaterMark 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 EpollServerSocketChannelConfig setTcpMd5Sig(Map<InetAddress,byte[]> keys)
TCP_MD5SIG option on the socket. See linux/tcp.h for more details.
Keys can only be set on, not read to prevent a potential leak, as they are confidential.
Allowing them being read would mean anyone with access to the channel could get them.public 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.public boolean isFreeBind()
public EpollServerSocketChannelConfig setFreeBind(boolean freeBind)
public boolean isIpTransparent()
public EpollServerSocketChannelConfig setIpTransparent(boolean transparent)
public EpollServerSocketChannelConfig setTcpDeferAccept(int deferAccept)
TCP_DEFER_ACCEPT option on the socket. See man 7 tcp for more details.public int getTcpDeferAccept()
Copyright © 2008–2019 The Netty Project. All rights reserved.