public class EpollServerChannelConfig extends EpollChannelConfig implements io.netty.channel.socket.ServerSocketChannelConfig
| Modifier and Type | Method and Description |
|---|---|
int |
getBacklog() |
<T> T |
getOption(io.netty.channel.ChannelOption<T> option) |
Map<io.netty.channel.ChannelOption<?>,Object> |
getOptions() |
int |
getReceiveBufferSize() |
int |
getTcpFastopen()
Returns threshold value of number of pending for fast open connect.
|
boolean |
isReuseAddress() |
EpollServerChannelConfig |
setAllocator(io.netty.buffer.ByteBufAllocator allocator) |
EpollServerChannelConfig |
setAutoRead(boolean autoRead) |
EpollServerChannelConfig |
setBacklog(int backlog) |
EpollServerChannelConfig |
setConnectTimeoutMillis(int connectTimeoutMillis) |
EpollServerChannelConfig |
setEpollMode(EpollMode mode)
Set the
EpollMode used. |
EpollServerChannelConfig |
setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.
|
EpollServerChannelConfig |
setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) |
<T> boolean |
setOption(io.netty.channel.ChannelOption<T> option,
T value) |
EpollServerChannelConfig |
setPerformancePreferences(int connectionTime,
int latency,
int bandwidth) |
EpollServerChannelConfig |
setReceiveBufferSize(int receiveBufferSize) |
EpollServerChannelConfig |
setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) |
EpollServerChannelConfig |
setReuseAddress(boolean reuseAddress) |
EpollServerChannelConfig |
setTcpFastopen(int pendingFastOpenRequestsThreshold)
Enables tcpFastOpen on the server channel.
|
EpollServerChannelConfig |
setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.
|
EpollServerChannelConfig |
setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.
|
EpollServerChannelConfig |
setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark) |
EpollServerChannelConfig |
setWriteSpinCount(int writeSpinCount) |
autoReadCleared, getEpollModegetAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptions, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllocator, 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 EpollChannelConfigpublic <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption in interface io.netty.channel.ChannelConfiggetOption in class EpollChannelConfigpublic <T> boolean setOption(io.netty.channel.ChannelOption<T> option,
T value)
setOption in interface io.netty.channel.ChannelConfigsetOption in class EpollChannelConfigpublic boolean isReuseAddress()
isReuseAddress in interface io.netty.channel.socket.ServerSocketChannelConfigpublic EpollServerChannelConfig setReuseAddress(boolean reuseAddress)
setReuseAddress in interface io.netty.channel.socket.ServerSocketChannelConfigpublic int getReceiveBufferSize()
getReceiveBufferSize in interface io.netty.channel.socket.ServerSocketChannelConfigpublic EpollServerChannelConfig setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize in interface io.netty.channel.socket.ServerSocketChannelConfigpublic int getBacklog()
getBacklog in interface io.netty.channel.socket.ServerSocketChannelConfigpublic EpollServerChannelConfig setBacklog(int backlog)
setBacklog in interface io.netty.channel.socket.ServerSocketChannelConfigpublic int getTcpFastopen()
public EpollServerChannelConfig setTcpFastopen(int pendingFastOpenRequestsThreshold)
pendingFastOpenRequestsThreshold - number of requests to be pending for fastopen at a given point in time
for security. @see RFC 7413 Passive Openpublic EpollServerChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences in interface io.netty.channel.socket.ServerSocketChannelConfigpublic EpollServerChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis in interface io.netty.channel.ChannelConfigsetConnectTimeoutMillis in interface io.netty.channel.socket.ServerSocketChannelConfigsetConnectTimeoutMillis in class EpollChannelConfig@Deprecated public EpollServerChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead in interface io.netty.channel.ChannelConfigsetMaxMessagesPerRead in interface io.netty.channel.socket.ServerSocketChannelConfigsetMaxMessagesPerRead in class EpollChannelConfigpublic EpollServerChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount in interface io.netty.channel.ChannelConfigsetWriteSpinCount in interface io.netty.channel.socket.ServerSocketChannelConfigsetWriteSpinCount in class EpollChannelConfigpublic EpollServerChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator in interface io.netty.channel.ChannelConfigsetAllocator in interface io.netty.channel.socket.ServerSocketChannelConfigsetAllocator in class EpollChannelConfigpublic EpollServerChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator in interface io.netty.channel.ChannelConfigsetRecvByteBufAllocator in interface io.netty.channel.socket.ServerSocketChannelConfigsetRecvByteBufAllocator in class EpollChannelConfigpublic EpollServerChannelConfig setAutoRead(boolean autoRead)
setAutoRead in interface io.netty.channel.ChannelConfigsetAutoRead in interface io.netty.channel.socket.ServerSocketChannelConfigsetAutoRead in class EpollChannelConfig@Deprecated public EpollServerChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferHighWaterMark in interface io.netty.channel.socket.ServerSocketChannelConfigsetWriteBufferHighWaterMark in class EpollChannelConfig@Deprecated public EpollServerChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferLowWaterMark in interface io.netty.channel.socket.ServerSocketChannelConfigsetWriteBufferLowWaterMark in class EpollChannelConfigpublic EpollServerChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferWaterMark in interface io.netty.channel.socket.ServerSocketChannelConfigsetWriteBufferWaterMark in class EpollChannelConfigpublic EpollServerChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator in interface io.netty.channel.ChannelConfigsetMessageSizeEstimator in interface io.netty.channel.socket.ServerSocketChannelConfigsetMessageSizeEstimator in class EpollChannelConfigpublic EpollServerChannelConfig setEpollMode(EpollMode mode)
EpollChannelConfigEpollMode used. Default is
EpollMode.EDGE_TRIGGERED. If you want to use DefaultChannelConfig.isAutoRead() false or
DefaultChannelConfig.getMaxMessagesPerRead() and have an accurate behaviour you should use
EpollMode.LEVEL_TRIGGERED.
Be aware this config setting can only be adjusted before the channel was registered.setEpollMode in class EpollChannelConfigCopyright © 2008–2019 The Netty Project. All rights reserved.