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, 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
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 EpollChannelConfig
public <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption
in interface io.netty.channel.ChannelConfig
getOption
in class EpollChannelConfig
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value)
setOption
in interface io.netty.channel.ChannelConfig
setOption
in class EpollChannelConfig
public boolean isReuseAddress()
isReuseAddress
in interface io.netty.channel.socket.ServerSocketChannelConfig
public EpollServerChannelConfig setReuseAddress(boolean reuseAddress)
setReuseAddress
in interface io.netty.channel.socket.ServerSocketChannelConfig
public int getReceiveBufferSize()
getReceiveBufferSize
in interface io.netty.channel.socket.ServerSocketChannelConfig
public EpollServerChannelConfig setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize
in interface io.netty.channel.socket.ServerSocketChannelConfig
public int getBacklog()
getBacklog
in interface io.netty.channel.socket.ServerSocketChannelConfig
public EpollServerChannelConfig setBacklog(int backlog)
setBacklog
in interface io.netty.channel.socket.ServerSocketChannelConfig
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 setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences
in interface io.netty.channel.socket.ServerSocketChannelConfig
public EpollServerChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis
in interface io.netty.channel.ChannelConfig
setConnectTimeoutMillis
in interface io.netty.channel.socket.ServerSocketChannelConfig
setConnectTimeoutMillis
in class EpollChannelConfig
@Deprecated public EpollServerChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead
in interface io.netty.channel.ChannelConfig
setMaxMessagesPerRead
in interface io.netty.channel.socket.ServerSocketChannelConfig
setMaxMessagesPerRead
in class EpollChannelConfig
public EpollServerChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount
in interface io.netty.channel.ChannelConfig
setWriteSpinCount
in interface io.netty.channel.socket.ServerSocketChannelConfig
setWriteSpinCount
in class EpollChannelConfig
public EpollServerChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator
in interface io.netty.channel.ChannelConfig
setAllocator
in interface io.netty.channel.socket.ServerSocketChannelConfig
setAllocator
in class EpollChannelConfig
public EpollServerChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator
in interface io.netty.channel.ChannelConfig
setRecvByteBufAllocator
in interface io.netty.channel.socket.ServerSocketChannelConfig
setRecvByteBufAllocator
in class EpollChannelConfig
public EpollServerChannelConfig setAutoRead(boolean autoRead)
setAutoRead
in interface io.netty.channel.ChannelConfig
setAutoRead
in interface io.netty.channel.socket.ServerSocketChannelConfig
setAutoRead
in class EpollChannelConfig
@Deprecated public EpollServerChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferHighWaterMark
in interface io.netty.channel.socket.ServerSocketChannelConfig
setWriteBufferHighWaterMark
in class EpollChannelConfig
@Deprecated public EpollServerChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferLowWaterMark
in interface io.netty.channel.socket.ServerSocketChannelConfig
setWriteBufferLowWaterMark
in class EpollChannelConfig
public EpollServerChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferWaterMark
in interface io.netty.channel.socket.ServerSocketChannelConfig
setWriteBufferWaterMark
in class EpollChannelConfig
public EpollServerChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator
in interface io.netty.channel.ChannelConfig
setMessageSizeEstimator
in interface io.netty.channel.socket.ServerSocketChannelConfig
setMessageSizeEstimator
in class EpollChannelConfig
public EpollServerChannelConfig setEpollMode(EpollMode mode)
EpollChannelConfig
EpollMode
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 EpollChannelConfig
Copyright © 2008–2019 The Netty Project. All rights reserved.