public class EpollServerChannelConfig extends EpollChannelConfig
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.channel.epoll.AbstractEpollChannel |
channel |
| 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) |
EpollServerChannelConfig |
setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) |
<T> boolean |
setOption(io.netty.channel.ChannelOption<T> option,
T value) |
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) |
EpollServerChannelConfig |
setWriteBufferLowWaterMark(int writeBufferLowWaterMark) |
EpollServerChannelConfig |
setWriteSpinCount(int writeSpinCount) |
autoReadCleared, getEpollModegetAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptions, validatepublic 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()
public EpollServerChannelConfig setReuseAddress(boolean reuseAddress)
public int getReceiveBufferSize()
public EpollServerChannelConfig setReceiveBufferSize(int receiveBufferSize)
public int getBacklog()
public EpollServerChannelConfig setBacklog(int backlog)
public 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 setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis in interface io.netty.channel.ChannelConfigsetConnectTimeoutMillis in class EpollChannelConfigpublic EpollServerChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead in interface io.netty.channel.ChannelConfigsetMaxMessagesPerRead in class EpollChannelConfigpublic EpollServerChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount in interface io.netty.channel.ChannelConfigsetWriteSpinCount in class EpollChannelConfigpublic EpollServerChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator in interface io.netty.channel.ChannelConfigsetAllocator in class EpollChannelConfigpublic EpollServerChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator in interface io.netty.channel.ChannelConfigsetRecvByteBufAllocator in class EpollChannelConfigpublic EpollServerChannelConfig setAutoRead(boolean autoRead)
setAutoRead in interface io.netty.channel.ChannelConfigsetAutoRead in class EpollChannelConfigpublic EpollServerChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferHighWaterMark in class EpollChannelConfigpublic EpollServerChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferLowWaterMark in class EpollChannelConfigpublic EpollServerChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator in interface io.netty.channel.ChannelConfigsetMessageSizeEstimator 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–2016 The Netty Project. All rights reserved.