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, setTcpFastopen
autoReadCleared, getEpollMode
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptions, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBacklog, getReceiveBufferSize, isReuseAddress
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptions
public Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
getOptions
in interface io.netty.channel.ChannelConfig
getOptions
in class EpollServerChannelConfig
public <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption
in interface io.netty.channel.ChannelConfig
getOption
in class EpollServerChannelConfig
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value)
setOption
in interface io.netty.channel.ChannelConfig
setOption
in class EpollServerChannelConfig
public EpollServerSocketChannelConfig setReuseAddress(boolean reuseAddress)
setReuseAddress
in interface io.netty.channel.socket.ServerSocketChannelConfig
setReuseAddress
in class EpollServerChannelConfig
public EpollServerSocketChannelConfig setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize
in interface io.netty.channel.socket.ServerSocketChannelConfig
setReceiveBufferSize
in class EpollServerChannelConfig
public EpollServerSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences
in interface io.netty.channel.socket.ServerSocketChannelConfig
setPerformancePreferences
in class EpollServerChannelConfig
public EpollServerSocketChannelConfig setBacklog(int backlog)
setBacklog
in interface io.netty.channel.socket.ServerSocketChannelConfig
setBacklog
in class EpollServerChannelConfig
public EpollServerSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis
in interface io.netty.channel.ChannelConfig
setConnectTimeoutMillis
in interface io.netty.channel.socket.ServerSocketChannelConfig
setConnectTimeoutMillis
in class EpollServerChannelConfig
@Deprecated public EpollServerSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead
in interface io.netty.channel.ChannelConfig
setMaxMessagesPerRead
in interface io.netty.channel.socket.ServerSocketChannelConfig
setMaxMessagesPerRead
in class EpollServerChannelConfig
public EpollServerSocketChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount
in interface io.netty.channel.ChannelConfig
setWriteSpinCount
in interface io.netty.channel.socket.ServerSocketChannelConfig
setWriteSpinCount
in class EpollServerChannelConfig
public EpollServerSocketChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator
in interface io.netty.channel.ChannelConfig
setAllocator
in interface io.netty.channel.socket.ServerSocketChannelConfig
setAllocator
in class EpollServerChannelConfig
public EpollServerSocketChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator
in interface io.netty.channel.ChannelConfig
setRecvByteBufAllocator
in interface io.netty.channel.socket.ServerSocketChannelConfig
setRecvByteBufAllocator
in class EpollServerChannelConfig
public EpollServerSocketChannelConfig setAutoRead(boolean autoRead)
setAutoRead
in interface io.netty.channel.ChannelConfig
setAutoRead
in interface io.netty.channel.socket.ServerSocketChannelConfig
setAutoRead
in class EpollServerChannelConfig
@Deprecated public EpollServerSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferHighWaterMark
in interface io.netty.channel.socket.ServerSocketChannelConfig
setWriteBufferHighWaterMark
in class EpollServerChannelConfig
@Deprecated public EpollServerSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferLowWaterMark
in interface io.netty.channel.socket.ServerSocketChannelConfig
setWriteBufferLowWaterMark
in class EpollServerChannelConfig
public EpollServerSocketChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferWaterMark
in interface io.netty.channel.socket.ServerSocketChannelConfig
setWriteBufferWaterMark
in class EpollServerChannelConfig
public EpollServerSocketChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator
in interface io.netty.channel.ChannelConfig
setMessageSizeEstimator
in interface io.netty.channel.socket.ServerSocketChannelConfig
setMessageSizeEstimator
in class EpollServerChannelConfig
public 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)
EpollSocketChannel
s 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.