public final class EpollSocketChannelConfig
extends io.netty.channel.DefaultChannelConfig
implements io.netty.channel.socket.SocketChannelConfig
| Modifier and Type | Method and Description |
|---|---|
protected void |
autoReadCleared() |
<T> T |
getOption(io.netty.channel.ChannelOption<T> option) |
Map<io.netty.channel.ChannelOption<?>,Object> |
getOptions() |
int |
getReceiveBufferSize() |
int |
getSendBufferSize() |
int |
getSoLinger() |
int |
getTcpKeepCnt()
Get the
TCP_KEEPCNT option on the socket. |
int |
getTcpKeepIdle()
Get the
TCP_KEEPIDLE option on the socket. |
int |
getTcpKeepIntvl()
Get the
TCP_KEEPINTVL option on the socket. |
int |
getTrafficClass() |
boolean |
isAllowHalfClosure() |
boolean |
isKeepAlive() |
boolean |
isReuseAddress() |
boolean |
isTcpCork()
Get the
TCP_CORK option on the socket. |
boolean |
isTcpNoDelay() |
EpollSocketChannelConfig |
setAllocator(io.netty.buffer.ByteBufAllocator allocator) |
EpollSocketChannelConfig |
setAllowHalfClosure(boolean allowHalfClosure) |
EpollSocketChannelConfig |
setAutoClose(boolean autoClose) |
EpollSocketChannelConfig |
setAutoRead(boolean autoRead) |
EpollSocketChannelConfig |
setConnectTimeoutMillis(int connectTimeoutMillis) |
EpollSocketChannelConfig |
setKeepAlive(boolean keepAlive) |
EpollSocketChannelConfig |
setMaxMessagesPerRead(int maxMessagesPerRead) |
EpollSocketChannelConfig |
setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) |
<T> boolean |
setOption(io.netty.channel.ChannelOption<T> option,
T value) |
EpollSocketChannelConfig |
setPerformancePreferences(int connectionTime,
int latency,
int bandwidth) |
EpollSocketChannelConfig |
setReceiveBufferSize(int receiveBufferSize) |
EpollSocketChannelConfig |
setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) |
EpollSocketChannelConfig |
setReuseAddress(boolean reuseAddress) |
EpollSocketChannelConfig |
setSendBufferSize(int sendBufferSize) |
EpollSocketChannelConfig |
setSoLinger(int soLinger) |
EpollSocketChannelConfig |
setTcpCork(boolean tcpCork)
Set the
TCP_CORK option on the socket. |
EpollSocketChannelConfig |
setTcpKeepCntl(int probes)
Set the
TCP_KEEPCNT option on the socket. |
EpollSocketChannelConfig |
setTcpKeepIdle(int seconds)
Set the
TCP_KEEPIDLE option on the socket. |
EpollSocketChannelConfig |
setTcpKeepIntvl(int seconds)
Set the
TCP_KEEPINTVL option on the socket. |
EpollSocketChannelConfig |
setTcpNoDelay(boolean tcpNoDelay) |
EpollSocketChannelConfig |
setTrafficClass(int trafficClass) |
EpollSocketChannelConfig |
setWriteBufferHighWaterMark(int writeBufferHighWaterMark) |
EpollSocketChannelConfig |
setWriteBufferLowWaterMark(int writeBufferLowWaterMark) |
EpollSocketChannelConfig |
setWriteSpinCount(int writeSpinCount) |
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions, validatepublic Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
getOptions in interface io.netty.channel.ChannelConfiggetOptions in class io.netty.channel.DefaultChannelConfigpublic <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption in interface io.netty.channel.ChannelConfiggetOption in class io.netty.channel.DefaultChannelConfigpublic <T> boolean setOption(io.netty.channel.ChannelOption<T> option,
T value)
setOption in interface io.netty.channel.ChannelConfigsetOption in class io.netty.channel.DefaultChannelConfigpublic int getReceiveBufferSize()
getReceiveBufferSize in interface io.netty.channel.socket.SocketChannelConfigpublic int getSendBufferSize()
getSendBufferSize in interface io.netty.channel.socket.SocketChannelConfigpublic int getSoLinger()
getSoLinger in interface io.netty.channel.socket.SocketChannelConfigpublic int getTrafficClass()
getTrafficClass in interface io.netty.channel.socket.SocketChannelConfigpublic boolean isKeepAlive()
isKeepAlive in interface io.netty.channel.socket.SocketChannelConfigpublic boolean isReuseAddress()
isReuseAddress in interface io.netty.channel.socket.SocketChannelConfigpublic boolean isTcpNoDelay()
isTcpNoDelay in interface io.netty.channel.socket.SocketChannelConfigpublic boolean isTcpCork()
TCP_CORK option on the socket. See man 7 tcp for more details.public int getTcpKeepIdle()
TCP_KEEPIDLE option on the socket. See man 7 tcp for more details.public int getTcpKeepIntvl()
TCP_KEEPINTVL option on the socket. See man 7 tcp for more details.public int getTcpKeepCnt()
TCP_KEEPCNT option on the socket. See man 7 tcp for more details.public EpollSocketChannelConfig setKeepAlive(boolean keepAlive)
setKeepAlive in interface io.netty.channel.socket.SocketChannelConfigpublic EpollSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences in interface io.netty.channel.socket.SocketChannelConfigpublic EpollSocketChannelConfig setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize in interface io.netty.channel.socket.SocketChannelConfigpublic EpollSocketChannelConfig setReuseAddress(boolean reuseAddress)
setReuseAddress in interface io.netty.channel.socket.SocketChannelConfigpublic EpollSocketChannelConfig setSendBufferSize(int sendBufferSize)
setSendBufferSize in interface io.netty.channel.socket.SocketChannelConfigpublic EpollSocketChannelConfig setSoLinger(int soLinger)
setSoLinger in interface io.netty.channel.socket.SocketChannelConfigpublic EpollSocketChannelConfig setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay in interface io.netty.channel.socket.SocketChannelConfigpublic EpollSocketChannelConfig setTcpCork(boolean tcpCork)
TCP_CORK option on the socket. See man 7 tcp for more details.public EpollSocketChannelConfig setTrafficClass(int trafficClass)
setTrafficClass in interface io.netty.channel.socket.SocketChannelConfigpublic EpollSocketChannelConfig setTcpKeepIdle(int seconds)
TCP_KEEPIDLE option on the socket. See man 7 tcp for more details.public EpollSocketChannelConfig setTcpKeepIntvl(int seconds)
TCP_KEEPINTVL option on the socket. See man 7 tcp for more details.public EpollSocketChannelConfig setTcpKeepCntl(int probes)
TCP_KEEPCNT option on the socket. See man 7 tcp for more details.public boolean isAllowHalfClosure()
isAllowHalfClosure in interface io.netty.channel.socket.SocketChannelConfigpublic EpollSocketChannelConfig setAllowHalfClosure(boolean allowHalfClosure)
setAllowHalfClosure in interface io.netty.channel.socket.SocketChannelConfigpublic EpollSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis in interface io.netty.channel.ChannelConfigsetConnectTimeoutMillis in interface io.netty.channel.socket.SocketChannelConfigsetConnectTimeoutMillis in class io.netty.channel.DefaultChannelConfigpublic EpollSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead in interface io.netty.channel.ChannelConfigsetMaxMessagesPerRead in interface io.netty.channel.socket.SocketChannelConfigsetMaxMessagesPerRead in class io.netty.channel.DefaultChannelConfigpublic EpollSocketChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount in interface io.netty.channel.ChannelConfigsetWriteSpinCount in interface io.netty.channel.socket.SocketChannelConfigsetWriteSpinCount in class io.netty.channel.DefaultChannelConfigpublic EpollSocketChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator in interface io.netty.channel.ChannelConfigsetAllocator in interface io.netty.channel.socket.SocketChannelConfigsetAllocator in class io.netty.channel.DefaultChannelConfigpublic EpollSocketChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator in interface io.netty.channel.ChannelConfigsetRecvByteBufAllocator in interface io.netty.channel.socket.SocketChannelConfigsetRecvByteBufAllocator in class io.netty.channel.DefaultChannelConfigpublic EpollSocketChannelConfig setAutoRead(boolean autoRead)
setAutoRead in interface io.netty.channel.ChannelConfigsetAutoRead in interface io.netty.channel.socket.SocketChannelConfigsetAutoRead in class io.netty.channel.DefaultChannelConfigpublic EpollSocketChannelConfig setAutoClose(boolean autoClose)
setAutoClose in interface io.netty.channel.ChannelConfigsetAutoClose in interface io.netty.channel.socket.SocketChannelConfigsetAutoClose in class io.netty.channel.DefaultChannelConfigpublic EpollSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferHighWaterMark in class io.netty.channel.DefaultChannelConfigpublic EpollSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferLowWaterMark in class io.netty.channel.DefaultChannelConfigpublic EpollSocketChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator in interface io.netty.channel.ChannelConfigsetMessageSizeEstimator in interface io.netty.channel.socket.SocketChannelConfigsetMessageSizeEstimator in class io.netty.channel.DefaultChannelConfigprotected void autoReadCleared()
autoReadCleared in class io.netty.channel.DefaultChannelConfigCopyright © 2008–2014 The Netty Project. All rights reserved.