public class EpollServerChannelConfig extends EpollChannelConfig
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.channel.epoll.AbstractEpollChannel |
channel |
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 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–2015 The Netty Project. All rights reserved.