public final class IOUringSocketChannelConfig
extends io.netty.channel.DefaultChannelConfig
implements io.netty.channel.socket.SocketChannelConfig
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getOption(io.netty.channel.ChannelOption<T> option) |
Map<io.netty.channel.ChannelOption<?>,Object> |
getOptions() |
int |
getReceiveBufferSize() |
int |
getSendBufferSize() |
int |
getSoBusyPoll()
Get the
SO_BUSY_POLL option on the socket. |
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. |
long |
getTcpNotSentLowAt()
Get the
TCP_NOTSENT_LOWAT option on the socket. |
int |
getTcpUserTimeout()
Get the
TCP_USER_TIMEOUT option on the socket. |
int |
getTrafficClass() |
boolean |
isAllowHalfClosure() |
boolean |
isIpTransparent()
|
boolean |
isKeepAlive() |
boolean |
isReuseAddress() |
boolean |
isTcpCork()
Get the
TCP_CORK option on the socket. |
boolean |
isTcpFastOpenConnect()
Returns
true if TCP_FASTOPEN_CONNECT is enabled, false otherwise. |
boolean |
isTcpNoDelay() |
boolean |
isTcpQuickAck()
|
IOUringSocketChannelConfig |
setAllocator(io.netty.buffer.ByteBufAllocator allocator) |
IOUringSocketChannelConfig |
setAllowHalfClosure(boolean allowHalfClosure) |
IOUringSocketChannelConfig |
setAutoClose(boolean autoClose) |
IOUringSocketChannelConfig |
setAutoRead(boolean autoRead) |
IOUringSocketChannelConfig |
setConnectTimeoutMillis(int connectTimeoutMillis) |
IOUringSocketChannelConfig |
setIpTransparent(boolean transparent)
|
IOUringSocketChannelConfig |
setKeepAlive(boolean keepAlive) |
IOUringSocketChannelConfig |
setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.
|
IOUringSocketChannelConfig |
setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) |
<T> boolean |
setOption(io.netty.channel.ChannelOption<T> option,
T value) |
IOUringSocketChannelConfig |
setPerformancePreferences(int connectionTime,
int latency,
int bandwidth) |
IOUringSocketChannelConfig |
setReceiveBufferSize(int receiveBufferSize) |
IOUringSocketChannelConfig |
setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) |
IOUringSocketChannelConfig |
setReuseAddress(boolean reuseAddress) |
IOUringSocketChannelConfig |
setSendBufferSize(int sendBufferSize) |
IOUringSocketChannelConfig |
setSoBusyPoll(int loopMicros)
Set the
SO_BUSY_POLL option on the socket. |
IOUringSocketChannelConfig |
setSoLinger(int soLinger) |
IOUringSocketChannelConfig |
setTcpCork(boolean tcpCork)
Set the
TCP_CORK option on the socket. |
IOUringSocketChannelConfig |
setTcpFastOpenConnect(boolean fastOpenConnect)
Enables client TCP fast open.
|
IOUringSocketChannelConfig |
setTcpKeepCnt(int probes)
Set the
TCP_KEEPCNT option on the socket. |
IOUringSocketChannelConfig |
setTcpKeepCntl(int probes)
Deprecated.
|
IOUringSocketChannelConfig |
setTcpKeepIdle(int seconds)
Set the
TCP_KEEPIDLE option on the socket. |
IOUringSocketChannelConfig |
setTcpKeepIntvl(int seconds)
Set the
TCP_KEEPINTVL option on the socket. |
IOUringSocketChannelConfig |
setTcpNoDelay(boolean tcpNoDelay) |
IOUringSocketChannelConfig |
setTcpNotSentLowAt(long tcpNotSentLowAt)
Set the
TCP_NOTSENT_LOWAT option on the socket. |
IOUringSocketChannelConfig |
setTcpQuickAck(boolean quickAck)
Set the
TCP_QUICKACK option on the socket. |
IOUringSocketChannelConfig |
setTcpUserTimeout(int milliseconds)
Set the
TCP_USER_TIMEOUT option on the socket. |
IOUringSocketChannelConfig |
setTrafficClass(int trafficClass) |
IOUringSocketChannelConfig |
setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.
|
IOUringSocketChannelConfig |
setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.
|
IOUringSocketChannelConfig |
setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark) |
IOUringSocketChannelConfig |
setWriteSpinCount(int writeSpinCount) |
autoReadCleared, getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setMaxMessagesPerWrite, setOptions, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptionspublic 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 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 getSoBusyPoll()
SO_BUSY_POLL option on the socket. See man 7 tcp for more details.public long getTcpNotSentLowAt()
TCP_NOTSENT_LOWAT 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 int getTcpUserTimeout()
TCP_USER_TIMEOUT option on the socket. See man 7 tcp for more details.public IOUringSocketChannelConfig setKeepAlive(boolean keepAlive)
setKeepAlive in interface io.netty.channel.socket.SocketChannelConfigpublic IOUringSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences in interface io.netty.channel.socket.SocketChannelConfigpublic IOUringSocketChannelConfig setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize in interface io.netty.channel.socket.SocketChannelConfigpublic IOUringSocketChannelConfig setReuseAddress(boolean reuseAddress)
setReuseAddress in interface io.netty.channel.socket.SocketChannelConfigpublic IOUringSocketChannelConfig setSendBufferSize(int sendBufferSize)
setSendBufferSize in interface io.netty.channel.socket.SocketChannelConfigpublic int getReceiveBufferSize()
getReceiveBufferSize in interface io.netty.channel.socket.SocketChannelConfigpublic IOUringSocketChannelConfig setSoLinger(int soLinger)
setSoLinger in interface io.netty.channel.socket.SocketChannelConfigpublic IOUringSocketChannelConfig setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay in interface io.netty.channel.socket.SocketChannelConfigpublic IOUringSocketChannelConfig setTcpCork(boolean tcpCork)
TCP_CORK option on the socket. See man 7 tcp for more details.public IOUringSocketChannelConfig setSoBusyPoll(int loopMicros)
SO_BUSY_POLL option on the socket. See man 7 tcp for more details.public IOUringSocketChannelConfig setTcpNotSentLowAt(long tcpNotSentLowAt)
TCP_NOTSENT_LOWAT option on the socket. See man 7 tcp for more details.tcpNotSentLowAt - is a uint32_tpublic IOUringSocketChannelConfig setTrafficClass(int trafficClass)
setTrafficClass in interface io.netty.channel.socket.SocketChannelConfigpublic IOUringSocketChannelConfig setTcpKeepIdle(int seconds)
TCP_KEEPIDLE option on the socket. See man 7 tcp for more details.public IOUringSocketChannelConfig setTcpKeepIntvl(int seconds)
TCP_KEEPINTVL option on the socket. See man 7 tcp for more details.@Deprecated public IOUringSocketChannelConfig setTcpKeepCntl(int probes)
setTcpKeepCnt(int)public IOUringSocketChannelConfig setTcpKeepCnt(int probes)
TCP_KEEPCNT option on the socket. See man 7 tcp for more details.public IOUringSocketChannelConfig setTcpUserTimeout(int milliseconds)
TCP_USER_TIMEOUT option on the socket. See man 7 tcp for more details.public boolean isIpTransparent()
public IOUringSocketChannelConfig setIpTransparent(boolean transparent)
public IOUringSocketChannelConfig setTcpQuickAck(boolean quickAck)
TCP_QUICKACK option on the socket. See TCP_QUICKACK
for more details.public boolean isTcpQuickAck()
public IOUringSocketChannelConfig setTcpFastOpenConnect(boolean fastOpenConnect)
public boolean isTcpFastOpenConnect()
true if TCP_FASTOPEN_CONNECT is enabled, false otherwise.public boolean isAllowHalfClosure()
isAllowHalfClosure in interface io.netty.channel.socket.DuplexChannelConfigpublic IOUringSocketChannelConfig setAllowHalfClosure(boolean allowHalfClosure)
setAllowHalfClosure in interface io.netty.channel.socket.DuplexChannelConfigsetAllowHalfClosure in interface io.netty.channel.socket.SocketChannelConfigpublic IOUringSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis in interface io.netty.channel.ChannelConfigsetConnectTimeoutMillis in interface io.netty.channel.socket.SocketChannelConfigsetConnectTimeoutMillis in class io.netty.channel.DefaultChannelConfig@Deprecated public IOUringSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead in interface io.netty.channel.ChannelConfigsetMaxMessagesPerRead in interface io.netty.channel.socket.DuplexChannelConfigsetMaxMessagesPerRead in interface io.netty.channel.socket.SocketChannelConfigsetMaxMessagesPerRead in class io.netty.channel.DefaultChannelConfigpublic IOUringSocketChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount in interface io.netty.channel.ChannelConfigsetWriteSpinCount in interface io.netty.channel.socket.DuplexChannelConfigsetWriteSpinCount in interface io.netty.channel.socket.SocketChannelConfigsetWriteSpinCount in class io.netty.channel.DefaultChannelConfigpublic IOUringSocketChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator in interface io.netty.channel.ChannelConfigsetAllocator in interface io.netty.channel.socket.DuplexChannelConfigsetAllocator in interface io.netty.channel.socket.SocketChannelConfigsetAllocator in class io.netty.channel.DefaultChannelConfigpublic IOUringSocketChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator in interface io.netty.channel.ChannelConfigsetRecvByteBufAllocator in interface io.netty.channel.socket.DuplexChannelConfigsetRecvByteBufAllocator in interface io.netty.channel.socket.SocketChannelConfigsetRecvByteBufAllocator in class io.netty.channel.DefaultChannelConfigpublic IOUringSocketChannelConfig setAutoRead(boolean autoRead)
setAutoRead in interface io.netty.channel.ChannelConfigsetAutoRead in interface io.netty.channel.socket.DuplexChannelConfigsetAutoRead in interface io.netty.channel.socket.SocketChannelConfigsetAutoRead in class io.netty.channel.DefaultChannelConfigpublic IOUringSocketChannelConfig setAutoClose(boolean autoClose)
setAutoClose in interface io.netty.channel.ChannelConfigsetAutoClose in interface io.netty.channel.socket.DuplexChannelConfigsetAutoClose in interface io.netty.channel.socket.SocketChannelConfigsetAutoClose in class io.netty.channel.DefaultChannelConfig@Deprecated public IOUringSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferHighWaterMark in class io.netty.channel.DefaultChannelConfig@Deprecated public IOUringSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferLowWaterMark in class io.netty.channel.DefaultChannelConfigpublic IOUringSocketChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferWaterMark in interface io.netty.channel.socket.DuplexChannelConfigsetWriteBufferWaterMark in interface io.netty.channel.socket.SocketChannelConfigsetWriteBufferWaterMark in class io.netty.channel.DefaultChannelConfigpublic IOUringSocketChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator in interface io.netty.channel.ChannelConfigsetMessageSizeEstimator in interface io.netty.channel.socket.DuplexChannelConfigsetMessageSizeEstimator in interface io.netty.channel.socket.SocketChannelConfigsetMessageSizeEstimator in class io.netty.channel.DefaultChannelConfigCopyright © 2020–2024 The Netty Project. All rights reserved.