Top Fields Constructors Methods
io.netty.channel.epoll

public final Class EpollSocketChannelConfig

extends EpollChannelConfig
implements SocketChannelConfig
Class Inheritance
All Implemented Interfaces
io.netty.channel.socket.SocketChannelConfig, io.netty.channel.socket.DuplexChannelConfig, io.netty.channel.ChannelConfig
Imports
io.netty.buffer.ByteBufAllocator, io.netty.channel.ChannelException, .ChannelOption, .MessageSizeEstimator, .RecvByteBufAllocator, .WriteBufferWaterMark, io.netty.channel.socket.SocketChannelConfig, io.netty.util.internal.PlatformDependent, java.io.IOException, java.net.InetAddress, java.util.Map

Field Summary

Modifier and TypeField and Description
private volatile boolean
private volatile boolean

Constructor Summary

AccessConstructor and Description
pack-priv
EpollSocketChannelConfig(EpollSocketChannel channel)

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
private void
public <T> T
public Map<ChannelOption<?>, Object>
public int
public int
public int
getSoBusyPoll()

Get the SO_BUSY_POLL option on the socket.

public int
public int
getTcpKeepCnt()

Get the TCP_KEEPCNT option on the socket.

public int
getTcpKeepIdle()

Get the TCP_KEEPIDLE option on the socket.

public int
getTcpKeepIntvl()

Get the TCP_KEEPINTVL option on the socket.

public long

Returns:

value is a uint32_t
getTcpNotSentLowAt
()

Get the TCP_NOTSENT_LOWAT option on the socket.

public int
getTcpUserTimeout()

Get the TCP_USER_TIMEOUT option on the socket.

public int
public boolean
isAllowHalfClosure()

Implements io.netty.channel.socket.DuplexChannelConfig.isAllowHalfClosure.

Returns true if and only if the channel should not close itself when its remote peer shuts down output to make the connection half-closed.
public boolean
isIpTransparent()

Returns true if IP_TRANSPARENT is enabled, false otherwise.

public boolean
public boolean
public boolean
isTcpCork()

Get the TCP_CORK option on the socket.

public boolean
isTcpFastOpenConnect()

Returns true if TCP fast open is enabled, false otherwise.

public boolean
public boolean
isTcpQuickAck()

Returns true if TCP_QUICKACK is enabled, false otherwise.

public EpollSocketChannelConfig
public EpollSocketChannelConfig
setAllowHalfClosure(boolean allowHalfClosure)

Implements io.netty.channel.socket.SocketChannelConfig.setAllowHalfClosure.

Sets whether the channel should not close itself when its remote peer shuts down output to make the connection half-closed.
public EpollSocketChannelConfig
setAutoClose(boolean autoClose)

Overrides io.netty.channel.DefaultChannelConfig.setAutoClose.

Implements io.netty.channel.socket.SocketChannelConfig.setAutoClose, io.netty.channel.ChannelConfig.setAutoClose.

Sets whether the Channel should be closed automatically and immediately on write failure.
public EpollSocketChannelConfig
setAutoRead(boolean autoRead)

Overrides io.netty.channel.epoll.EpollChannelConfig.setAutoRead.

Implements io.netty.channel.socket.SocketChannelConfig.setAutoRead, io.netty.channel.ChannelConfig.setAutoRead.

Sets if ChannelHandlerContext#read() will be invoked automatically so that a user application doesn't need to call it at all.
public EpollSocketChannelConfig
setConnectTimeoutMillis(int
the connect timeout in milliseconds. 0 to disable.
connectTimeoutMillis
)

Overrides io.netty.channel.epoll.EpollChannelConfig.setConnectTimeoutMillis.

Implements io.netty.channel.socket.SocketChannelConfig.setConnectTimeoutMillis, io.netty.channel.ChannelConfig.setConnectTimeoutMillis.

Sets the connect timeout of the channel in milliseconds.
public EpollSocketChannelConfig
public EpollSocketChannelConfig
setIpTransparent(boolean transparent)

If true is used IP_TRANSPARENT is enabled, false for disable it.

public EpollSocketChannelConfig
public EpollSocketChannelConfig
public EpollSocketChannelConfig
public <T> boolean
setOption(ChannelOption<T> option, T value)

Overrides io.netty.channel.epoll.EpollChannelConfig.setOption.

Implements io.netty.channel.ChannelConfig.setOption.

Sets a configuration property with the specified name and value.
public EpollSocketChannelConfig
setPerformancePreferences(int connectionTime, int latency, int bandwidth)

Implements io.netty.channel.socket.SocketChannelConfig.setPerformancePreferences.

Sets the performance preferences as specified in Socket#setPerformancePreferences(int, int, int).
public EpollSocketChannelConfig
public EpollSocketChannelConfig
public EpollSocketChannelConfig
public EpollSocketChannelConfig
public EpollSocketChannelConfig
setSoBusyPoll(int loopMicros)

Set the SO_BUSY_POLL option on the socket.

public EpollSocketChannelConfig
public EpollSocketChannelConfig
setTcpCork(boolean tcpCork)

Set the TCP_CORK option on the socket.

public EpollSocketChannelConfig
setTcpFastOpenConnect(boolean fastOpenConnect)

Enables client TCP fast open.

public EpollSocketChannelConfig
setTcpKeepCnt(int probes)

Set the TCP_KEEPCNT option on the socket.

public EpollSocketChannelConfig
setTcpKeepCntl(int probes)

Deprecated use setTcpKeepCnt(int)
public EpollSocketChannelConfig
setTcpKeepIdle(int seconds)

Set the TCP_KEEPIDLE option on the socket.

public EpollSocketChannelConfig
setTcpKeepIntvl(int seconds)

Set the TCP_KEEPINTVL option on the socket.

public EpollSocketChannelConfig
setTcpMd5Sig(Map<InetAddress, byte[]> keys)

Set the TCP_MD5SIG option on the socket.

public EpollSocketChannelConfig
public EpollSocketChannelConfig
setTcpNotSentLowAt(long
is a uint32_t
tcpNotSentLowAt
)

Set the TCP_NOTSENT_LOWAT option on the socket.

public EpollSocketChannelConfig
setTcpQuickAck(boolean quickAck)

Set the TCP_QUICKACK option on the socket.

public EpollSocketChannelConfig
setTcpUserTimeout(int milliseconds)

Set the TCP_USER_TIMEOUT option on the socket.

public EpollSocketChannelConfig
public EpollSocketChannelConfig
setWriteBufferHighWaterMark(int writeBufferHighWaterMark)

Overrides io.netty.channel.epoll.EpollChannelConfig.setWriteBufferHighWaterMark.

Implements io.netty.channel.ChannelConfig.setWriteBufferHighWaterMark.

Deprecated

Sets the high water mark of the write buffer.

public EpollSocketChannelConfig
setWriteBufferLowWaterMark(int writeBufferLowWaterMark)

Overrides io.netty.channel.epoll.EpollChannelConfig.setWriteBufferLowWaterMark.

Implements io.netty.channel.ChannelConfig.setWriteBufferLowWaterMark.

Deprecated

Sets the low water mark of the write buffer.

public EpollSocketChannelConfig
public EpollSocketChannelConfig
Inherited from io.netty.channel.epoll.EpollChannelConfig:
autoReadClearedgetEpollModegetMaxBytesPerGatheringWritesetMaxBytesPerGatheringWritesocket

Field Detail

allowHalfClosureback to summary
private volatile boolean allowHalfClosure
tcpFastopenback to summary
private volatile boolean tcpFastopen

Constructor Detail

EpollSocketChannelConfigback to summary
pack-priv EpollSocketChannelConfig(EpollSocketChannel channel)

Creates a new instance.

Method Detail

calculateMaxBytesPerGatheringWriteback to summary
private void calculateMaxBytesPerGatheringWrite()
getOptionback to summary
public <T> T getOption(ChannelOption<T> option)

Overrides io.netty.channel.epoll.EpollChannelConfig.getOption.

Implements io.netty.channel.ChannelConfig.getOption.

Doc from io.netty.channel.ChannelConfig.getOption.

Return the value of the given ChannelOption

Annotations
@SuppressWarnings:unchecked
@Override
getOptionsback to summary
public Map<ChannelOption<?>, Object> getOptions()

Overrides io.netty.channel.epoll.EpollChannelConfig.getOptions.

Implements io.netty.channel.ChannelConfig.getOptions.

Doc from io.netty.channel.ChannelConfig.getOptions.

Return all set ChannelOption's.

Annotations
@Override
getReceiveBufferSizeback to summary
public int getReceiveBufferSize()

Implements io.netty.channel.socket.SocketChannelConfig.getReceiveBufferSize.

Doc from io.netty.channel.socket.SocketChannelConfig.getReceiveBufferSize.

Gets the StandardSocketOptions#SO_RCVBUF option.

Annotations
@Override
getSendBufferSizeback to summary
public int getSendBufferSize()

Implements io.netty.channel.socket.SocketChannelConfig.getSendBufferSize.

Doc from io.netty.channel.socket.SocketChannelConfig.getSendBufferSize.

Gets the StandardSocketOptions#SO_SNDBUF option.

Annotations
@Override
getSoBusyPollback to summary
public int getSoBusyPoll()

Get the SO_BUSY_POLL option on the socket. See man 7 tcp for more details.

getSoLingerback to summary
public int getSoLinger()

Implements io.netty.channel.socket.SocketChannelConfig.getSoLinger.

Doc from io.netty.channel.socket.SocketChannelConfig.getSoLinger.

Gets the StandardSocketOptions#SO_LINGER option.

Annotations
@Override
getTcpKeepCntback to summary
public int getTcpKeepCnt()

Get the TCP_KEEPCNT option on the socket. See man 7 tcp for more details.

getTcpKeepIdleback to summary
public int getTcpKeepIdle()

Get the TCP_KEEPIDLE option on the socket. See man 7 tcp for more details.

getTcpKeepIntvlback to summary
public int getTcpKeepIntvl()

Get the TCP_KEEPINTVL option on the socket. See man 7 tcp for more details.

getTcpNotSentLowAtback to summary
public long getTcpNotSentLowAt()

Get the TCP_NOTSENT_LOWAT option on the socket. See man 7 tcp for more details.

Returns:long

value is a uint32_t

getTcpUserTimeoutback to summary
public int getTcpUserTimeout()

Get the TCP_USER_TIMEOUT option on the socket. See man 7 tcp for more details.

getTrafficClassback to summary
public int getTrafficClass()

Implements io.netty.channel.socket.SocketChannelConfig.getTrafficClass.

Doc from io.netty.channel.socket.SocketChannelConfig.getTrafficClass.

Gets the StandardSocketOptions#IP_TOS option.

Annotations
@Override
isAllowHalfClosureback to summary
public boolean isAllowHalfClosure()

Implements io.netty.channel.socket.DuplexChannelConfig.isAllowHalfClosure.

Doc from io.netty.channel.socket.DuplexChannelConfig.isAllowHalfClosure.

Returns true if and only if the channel should not close itself when its remote peer shuts down output to make the connection half-closed. If false, the connection is closed automatically when the remote peer shuts down output.

Annotations
@Override
isIpTransparentback to summary
public boolean isIpTransparent()

Returns true if IP_TRANSPARENT is enabled, false otherwise.

isKeepAliveback to summary
public boolean isKeepAlive()

Implements io.netty.channel.socket.SocketChannelConfig.isKeepAlive.

Doc from io.netty.channel.socket.SocketChannelConfig.isKeepAlive.

Gets the StandardSocketOptions#SO_KEEPALIVE option.

Annotations
@Override
isReuseAddressback to summary
public boolean isReuseAddress()

Implements io.netty.channel.socket.SocketChannelConfig.isReuseAddress.

Doc from io.netty.channel.socket.SocketChannelConfig.isReuseAddress.

Gets the StandardSocketOptions#SO_REUSEADDR option.

Annotations
@Override
isTcpCorkback to summary
public boolean isTcpCork()

Get the TCP_CORK option on the socket. See man 7 tcp for more details.

isTcpFastOpenConnectback to summary
public boolean isTcpFastOpenConnect()

Returns true if TCP fast open is enabled, false otherwise.

isTcpNoDelayback to summary
public boolean isTcpNoDelay()

Implements io.netty.channel.socket.SocketChannelConfig.isTcpNoDelay.

Doc from io.netty.channel.socket.SocketChannelConfig.isTcpNoDelay.

Gets the StandardSocketOptions#TCP_NODELAY option. Please note that the default value of this option is true unlike the operating system default (false). However, for some buggy platforms, such as Android, that shows erratic behavior with Nagle's algorithm disabled, the default value remains to be false.

Annotations
@Override
isTcpQuickAckback to summary
public boolean isTcpQuickAck()

Returns true if TCP_QUICKACK is enabled, false otherwise.

setAllocatorback to summary
public EpollSocketChannelConfig setAllocator(ByteBufAllocator allocator)

Overrides io.netty.channel.epoll.EpollChannelConfig.setAllocator.

Implements io.netty.channel.socket.SocketChannelConfig.setAllocator, io.netty.channel.ChannelConfig.setAllocator.

Doc from io.netty.channel.ChannelConfig.setAllocator.

Set the ByteBufAllocator which is used for the channel to allocate buffers.

Annotations
@Override
setAllowHalfClosureback to summary
public EpollSocketChannelConfig setAllowHalfClosure(boolean allowHalfClosure)

Implements io.netty.channel.socket.SocketChannelConfig.setAllowHalfClosure.

Doc from io.netty.channel.socket.DuplexChannelConfig.setAllowHalfClosure.

Sets whether the channel should not close itself when its remote peer shuts down output to make the connection half-closed. If true the connection is not closed when the remote peer shuts down output. Instead, ChannelInboundHandler#userEventTriggered(ChannelHandlerContext, Object) is invoked with a ChannelInputShutdownEvent object. If false, the connection is closed automatically.

Annotations
@Override
setAutoCloseback to summary
public EpollSocketChannelConfig setAutoClose(boolean autoClose)

Overrides io.netty.channel.DefaultChannelConfig.setAutoClose.

Implements io.netty.channel.socket.SocketChannelConfig.setAutoClose, io.netty.channel.ChannelConfig.setAutoClose.

Doc from io.netty.channel.ChannelConfig.setAutoClose.

Sets whether the Channel should be closed automatically and immediately on write failure. The default is true.

Annotations
@Override
setAutoReadback to summary
public EpollSocketChannelConfig setAutoRead(boolean autoRead)

Overrides io.netty.channel.epoll.EpollChannelConfig.setAutoRead.

Implements io.netty.channel.socket.SocketChannelConfig.setAutoRead, io.netty.channel.ChannelConfig.setAutoRead.

Doc from io.netty.channel.ChannelConfig.setAutoRead.

Sets if ChannelHandlerContext#read() will be invoked automatically so that a user application doesn't need to call it at all. The default value is true.

Annotations
@Override
setConnectTimeoutMillisback to summary
public EpollSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)

Overrides io.netty.channel.epoll.EpollChannelConfig.setConnectTimeoutMillis.

Implements io.netty.channel.socket.SocketChannelConfig.setConnectTimeoutMillis, io.netty.channel.ChannelConfig.setConnectTimeoutMillis.

Doc from io.netty.channel.ChannelConfig.setConnectTimeoutMillis.

Sets the connect timeout of the channel in milliseconds. If the Channel does not support connect operation, this property is not used at all, and therefore will be ignored.

Parameters
connectTimeoutMillis:int

the connect timeout in milliseconds. 0 to disable.

Annotations
@Override
setEpollModeback to summary
public EpollSocketChannelConfig setEpollMode(EpollMode mode)

Overrides io.netty.channel.epoll.EpollChannelConfig.setEpollMode.

Doc from io.netty.channel.epoll.EpollChannelConfig.setEpollMode.

Set the EpollMode used. Default is EpollMode#EDGE_TRIGGERED. If you want to use isAutoRead() false or 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.

Annotations
@Override
setIpTransparentback to summary
public EpollSocketChannelConfig setIpTransparent(boolean transparent)

If true is used IP_TRANSPARENT is enabled, false for disable it. Default is disabled.

setKeepAliveback to summary
public EpollSocketChannelConfig setKeepAlive(boolean keepAlive)

Implements io.netty.channel.socket.SocketChannelConfig.setKeepAlive.

Doc from io.netty.channel.socket.SocketChannelConfig.setKeepAlive.

Sets the StandardSocketOptions#SO_KEEPALIVE option.

Annotations
@Override
setMaxMessagesPerReadback to summary
public EpollSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)

Overrides io.netty.channel.epoll.EpollChannelConfig.setMaxMessagesPerRead.

Implements io.netty.channel.socket.SocketChannelConfig.setMaxMessagesPerRead, io.netty.channel.ChannelConfig.setMaxMessagesPerRead.

Doc from io.netty.channel.DefaultChannelConfig.setMaxMessagesPerRead.

Deprecated

Annotations
@Override
@Deprecated
setMessageSizeEstimatorback to summary
public EpollSocketChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator)

Overrides io.netty.channel.epoll.EpollChannelConfig.setMessageSizeEstimator.

Implements io.netty.channel.socket.SocketChannelConfig.setMessageSizeEstimator, io.netty.channel.ChannelConfig.setMessageSizeEstimator.

Doc from io.netty.channel.ChannelConfig.setMessageSizeEstimator.

Set the MessageSizeEstimator which is used for the channel to detect the size of a message.

Annotations
@Override
setOptionback to summary
public <T> boolean setOption(ChannelOption<T> option, T value)

Overrides io.netty.channel.epoll.EpollChannelConfig.setOption.

Implements io.netty.channel.ChannelConfig.setOption.

Doc from io.netty.channel.ChannelConfig.setOption.

Sets a configuration property with the specified name and value. To override this method properly, you must call the super class:

public boolean setOption(ChannelOption<T> option, T value) {
    if (super.setOption(option, value)) {
        return true;
    }

    if (option.equals(additionalOption)) {
        ....
        return true;
    }

    return false;
}
Returns:boolean

true if and only if the property has been set

Annotations
@Override
setPerformancePreferencesback to summary
public EpollSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)

Implements io.netty.channel.socket.SocketChannelConfig.setPerformancePreferences.

Doc from io.netty.channel.socket.SocketChannelConfig.setPerformancePreferences.

Sets the performance preferences as specified in Socket#setPerformancePreferences(int, int, int).

Annotations
@Override
setReceiveBufferSizeback to summary
public EpollSocketChannelConfig setReceiveBufferSize(int receiveBufferSize)

Implements io.netty.channel.socket.SocketChannelConfig.setReceiveBufferSize.

Doc from io.netty.channel.socket.SocketChannelConfig.setReceiveBufferSize.

Sets the StandardSocketOptions#SO_RCVBUF option.

Annotations
@Override
setRecvByteBufAllocatorback to summary
public EpollSocketChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator)

Overrides io.netty.channel.epoll.EpollChannelConfig.setRecvByteBufAllocator.

Implements io.netty.channel.socket.SocketChannelConfig.setRecvByteBufAllocator, io.netty.channel.ChannelConfig.setRecvByteBufAllocator.

Doc from io.netty.channel.ChannelConfig.setRecvByteBufAllocator.

Set the RecvByteBufAllocator which is used for the channel to allocate receive buffers.

Annotations
@Override
setReuseAddressback to summary
public EpollSocketChannelConfig setReuseAddress(boolean reuseAddress)

Implements io.netty.channel.socket.SocketChannelConfig.setReuseAddress.

Doc from io.netty.channel.socket.SocketChannelConfig.setReuseAddress.

Sets the StandardSocketOptions#SO_REUSEADDR option.

Annotations
@Override
setSendBufferSizeback to summary
public EpollSocketChannelConfig setSendBufferSize(int sendBufferSize)

Implements io.netty.channel.socket.SocketChannelConfig.setSendBufferSize.

Doc from io.netty.channel.socket.SocketChannelConfig.setSendBufferSize.

Sets the StandardSocketOptions#SO_SNDBUF option.

Annotations
@Override
setSoBusyPollback to summary
public EpollSocketChannelConfig setSoBusyPoll(int loopMicros)

Set the SO_BUSY_POLL option on the socket. See man 7 tcp for more details.

setSoLingerback to summary
public EpollSocketChannelConfig setSoLinger(int soLinger)

Implements io.netty.channel.socket.SocketChannelConfig.setSoLinger.

Doc from io.netty.channel.socket.SocketChannelConfig.setSoLinger.

Sets the StandardSocketOptions#SO_LINGER option.

Annotations
@Override
setTcpCorkback to summary
public EpollSocketChannelConfig setTcpCork(boolean tcpCork)

Set the TCP_CORK option on the socket. See man 7 tcp for more details.

setTcpFastOpenConnectback to summary
public EpollSocketChannelConfig setTcpFastOpenConnect(boolean fastOpenConnect)

Enables client TCP fast open. TCP_FASTOPEN_CONNECT normally requires Linux kernel 4.11 or later, so instead we use the traditional fast open client socket mechanics that work with kernel 3.6 and later. See this LWN article for more info.

setTcpKeepCntback to summary
public EpollSocketChannelConfig setTcpKeepCnt(int probes)

Set the TCP_KEEPCNT option on the socket. See man 7 tcp for more details.

setTcpKeepCntlback to summary
public EpollSocketChannelConfig setTcpKeepCntl(int probes)

Deprecated

use setTcpKeepCnt(int)

Annotations
@Deprecated
setTcpKeepIdleback to summary
public EpollSocketChannelConfig setTcpKeepIdle(int seconds)

Set the TCP_KEEPIDLE option on the socket. See man 7 tcp for more details.

setTcpKeepIntvlback to summary
public EpollSocketChannelConfig setTcpKeepIntvl(int seconds)

Set the TCP_KEEPINTVL option on the socket. See man 7 tcp for more details.

setTcpMd5Sigback to summary
public EpollSocketChannelConfig setTcpMd5Sig(Map<InetAddress, byte[]> keys)

Set the TCP_MD5SIG option on the socket. See linux/tcp.h for more details. Keys can only be set on, not read to prevent a potential leak, as they are confidential. Allowing them being read would mean anyone with access to the channel could get them.

setTcpNoDelayback to summary
public EpollSocketChannelConfig setTcpNoDelay(boolean tcpNoDelay)

Implements io.netty.channel.socket.SocketChannelConfig.setTcpNoDelay.

Doc from io.netty.channel.socket.SocketChannelConfig.setTcpNoDelay.

Sets the StandardSocketOptions#TCP_NODELAY option. Please note that the default value of this option is true unlike the operating system default (false). However, for some buggy platforms, such as Android, that shows erratic behavior with Nagle's algorithm disabled, the default value remains to be false.

Annotations
@Override
setTcpNotSentLowAtback to summary
public EpollSocketChannelConfig setTcpNotSentLowAt(long tcpNotSentLowAt)

Set the TCP_NOTSENT_LOWAT option on the socket. See man 7 tcp for more details.

Parameters
tcpNotSentLowAt:long

is a uint32_t

setTcpQuickAckback to summary
public EpollSocketChannelConfig setTcpQuickAck(boolean quickAck)

Set the TCP_QUICKACK option on the socket. See TCP_QUICKACK for more details.

setTcpUserTimeoutback to summary
public EpollSocketChannelConfig setTcpUserTimeout(int milliseconds)

Set the TCP_USER_TIMEOUT option on the socket. See man 7 tcp for more details.

setTrafficClassback to summary
public EpollSocketChannelConfig setTrafficClass(int trafficClass)

Implements io.netty.channel.socket.SocketChannelConfig.setTrafficClass.

Doc from io.netty.channel.socket.SocketChannelConfig.setTrafficClass.

Sets the StandardSocketOptions#IP_TOS option.

Annotations
@Override
setWriteBufferHighWaterMarkback to summary
public EpollSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)

Overrides io.netty.channel.epoll.EpollChannelConfig.setWriteBufferHighWaterMark.

Implements io.netty.channel.ChannelConfig.setWriteBufferHighWaterMark.

Doc from io.netty.channel.ChannelConfig.setWriteBufferHighWaterMark.

Deprecated

Sets the high water mark of the write buffer. If the number of bytes queued in the write buffer exceeds this value, Channel#isWritable() will start to return false.

Annotations
@Override
@Deprecated
setWriteBufferLowWaterMarkback to summary
public EpollSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)

Overrides io.netty.channel.epoll.EpollChannelConfig.setWriteBufferLowWaterMark.

Implements io.netty.channel.ChannelConfig.setWriteBufferLowWaterMark.

Doc from io.netty.channel.ChannelConfig.setWriteBufferLowWaterMark.

Deprecated

Sets the low water mark of the write buffer. Once the number of bytes queued in the write buffer exceeded the high water mark and then dropped down below this value, Channel#isWritable() will start to return true again.

Annotations
@Override
@Deprecated
setWriteBufferWaterMarkback to summary
public EpollSocketChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)

Overrides io.netty.channel.epoll.EpollChannelConfig.setWriteBufferWaterMark.

Implements io.netty.channel.socket.SocketChannelConfig.setWriteBufferWaterMark, io.netty.channel.ChannelConfig.setWriteBufferWaterMark.

Doc from io.netty.channel.ChannelConfig.setWriteBufferWaterMark.

Set the WriteBufferWaterMark which is used for setting the high and low water mark of the write buffer.

Annotations
@Override
setWriteSpinCountback to summary
public EpollSocketChannelConfig setWriteSpinCount(int writeSpinCount)

Overrides io.netty.channel.epoll.EpollChannelConfig.setWriteSpinCount.

Implements io.netty.channel.socket.SocketChannelConfig.setWriteSpinCount, io.netty.channel.ChannelConfig.setWriteSpinCount.

Doc from io.netty.channel.ChannelConfig.setWriteSpinCount.

Sets the maximum loop count for a write operation until WritableByteChannel#write(ByteBuffer) returns a non-zero value. It is similar to what a spin lock is used for in concurrency programming. It improves memory utilization and write throughput depending on the platform that JVM runs on. The default value is 16.

Annotations
@Override