Package io.netty.incubator.channel.uring
Class IOUringSocketChannelConfig
java.lang.Object
io.netty.channel.DefaultChannelConfig
io.netty.incubator.channel.uring.IOUringSocketChannelConfig
- All Implemented Interfaces:
io.netty.channel.ChannelConfig,io.netty.channel.socket.DuplexChannelConfig,io.netty.channel.socket.SocketChannelConfig
public final class IOUringSocketChannelConfig
extends io.netty.channel.DefaultChannelConfig
implements io.netty.channel.socket.SocketChannelConfig
-
Field Summary
FieldsFields inherited from class io.netty.channel.DefaultChannelConfig
channel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetOption(io.netty.channel.ChannelOption<T> option) intintintGet theSO_BUSY_POLLoption on the socket.intintGet theTCP_KEEPCNToption on the socket.intGet theTCP_KEEPIDLEoption on the socket.intGet theTCP_KEEPINTVLoption on the socket.longGet theTCP_NOTSENT_LOWAToption on the socket.intGet theTCP_USER_TIMEOUToption on the socket.intbooleanbooleanbooleanbooleanbooleanGet theTCP_CORKoption on the socket.booleanReturnstrueifTCP_FASTOPEN_CONNECTis enabled,falseotherwise.booleanbooleansetAllocator(io.netty.buffer.ByteBufAllocator allocator) setAllowHalfClosure(boolean allowHalfClosure) setAutoClose(boolean autoClose) setAutoRead(boolean autoRead) setConnectTimeoutMillis(int connectTimeoutMillis) setIpTransparent(boolean transparent) setKeepAlive(boolean keepAlive) setMaxMessagesPerRead(int maxMessagesPerRead) Deprecated.setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) <T> booleansetOption(io.netty.channel.ChannelOption<T> option, T value) setPerformancePreferences(int connectionTime, int latency, int bandwidth) setReceiveBufferSize(int receiveBufferSize) setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) setReuseAddress(boolean reuseAddress) setSendBufferSize(int sendBufferSize) setSoBusyPoll(int loopMicros) Set theSO_BUSY_POLLoption on the socket.setSoLinger(int soLinger) setTcpCork(boolean tcpCork) Set theTCP_CORKoption on the socket.setTcpFastOpenConnect(boolean fastOpenConnect) Enables client TCP fast open.setTcpKeepCnt(int probes) Set theTCP_KEEPCNToption on the socket.setTcpKeepCntl(int probes) Deprecated.setTcpKeepIdle(int seconds) Set theTCP_KEEPIDLEoption on the socket.setTcpKeepIntvl(int seconds) Set theTCP_KEEPINTVLoption on the socket.setTcpNoDelay(boolean tcpNoDelay) setTcpNotSentLowAt(long tcpNotSentLowAt) Set theTCP_NOTSENT_LOWAToption on the socket.setTcpQuickAck(boolean quickAck) Set theTCP_QUICKACKoption on the socket.setTcpUserTimeout(int milliseconds) Set theTCP_USER_TIMEOUToption on the socket.setTrafficClass(int trafficClass) setWriteBufferHighWaterMark(int writeBufferHighWaterMark) Deprecated.setWriteBufferLowWaterMark(int writeBufferLowWaterMark) Deprecated.setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark) setWriteSpinCount(int writeSpinCount) Methods inherited from class io.netty.channel.DefaultChannelConfig
autoReadCleared, getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setMaxMessagesPerWrite, setOptions, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions
-
Field Details
-
allowHalfClosure
private volatile boolean allowHalfClosure -
tcpFastopen
private volatile boolean tcpFastopen
-
-
Constructor Details
-
IOUringSocketChannelConfig
IOUringSocketChannelConfig(io.netty.channel.Channel channel)
-
-
Method Details
-
getOptions
- Specified by:
getOptionsin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionsin classio.netty.channel.DefaultChannelConfig
-
getOption
public <T> T getOption(io.netty.channel.ChannelOption<T> option) - Specified by:
getOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionin classio.netty.channel.DefaultChannelConfig
-
setOption
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value) - Specified by:
setOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
setOptionin classio.netty.channel.DefaultChannelConfig
-
getSendBufferSize
public int getSendBufferSize()- Specified by:
getSendBufferSizein interfaceio.netty.channel.socket.SocketChannelConfig
-
getSoLinger
public int getSoLinger()- Specified by:
getSoLingerin interfaceio.netty.channel.socket.SocketChannelConfig
-
getTrafficClass
public int getTrafficClass()- Specified by:
getTrafficClassin interfaceio.netty.channel.socket.SocketChannelConfig
-
isKeepAlive
public boolean isKeepAlive()- Specified by:
isKeepAlivein interfaceio.netty.channel.socket.SocketChannelConfig
-
isReuseAddress
public boolean isReuseAddress()- Specified by:
isReuseAddressin interfaceio.netty.channel.socket.SocketChannelConfig
-
isTcpNoDelay
public boolean isTcpNoDelay()- Specified by:
isTcpNoDelayin interfaceio.netty.channel.socket.SocketChannelConfig
-
isTcpCork
public boolean isTcpCork()Get theTCP_CORKoption on the socket. Seeman 7 tcpfor more details. -
getSoBusyPoll
public int getSoBusyPoll()Get theSO_BUSY_POLLoption on the socket. Seeman 7 tcpfor more details. -
getTcpNotSentLowAt
public long getTcpNotSentLowAt()Get theTCP_NOTSENT_LOWAToption on the socket. Seeman 7 tcpfor more details.- Returns:
- value is a uint32_t
-
getTcpKeepIdle
public int getTcpKeepIdle()Get theTCP_KEEPIDLEoption on the socket. Seeman 7 tcpfor more details. -
getTcpKeepIntvl
public int getTcpKeepIntvl()Get theTCP_KEEPINTVLoption on the socket. Seeman 7 tcpfor more details. -
getTcpKeepCnt
public int getTcpKeepCnt()Get theTCP_KEEPCNToption on the socket. Seeman 7 tcpfor more details. -
getTcpUserTimeout
public int getTcpUserTimeout()Get theTCP_USER_TIMEOUToption on the socket. Seeman 7 tcpfor more details. -
setKeepAlive
- Specified by:
setKeepAlivein interfaceio.netty.channel.socket.SocketChannelConfig
-
setPerformancePreferences
public IOUringSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth) - Specified by:
setPerformancePreferencesin interfaceio.netty.channel.socket.SocketChannelConfig
-
setReceiveBufferSize
- Specified by:
setReceiveBufferSizein interfaceio.netty.channel.socket.SocketChannelConfig
-
setReuseAddress
- Specified by:
setReuseAddressin interfaceio.netty.channel.socket.SocketChannelConfig
-
setSendBufferSize
- Specified by:
setSendBufferSizein interfaceio.netty.channel.socket.SocketChannelConfig
-
getReceiveBufferSize
public int getReceiveBufferSize()- Specified by:
getReceiveBufferSizein interfaceio.netty.channel.socket.SocketChannelConfig
-
setSoLinger
- Specified by:
setSoLingerin interfaceio.netty.channel.socket.SocketChannelConfig
-
setTcpNoDelay
- Specified by:
setTcpNoDelayin interfaceio.netty.channel.socket.SocketChannelConfig
-
setTcpCork
Set theTCP_CORKoption on the socket. Seeman 7 tcpfor more details. -
setSoBusyPoll
Set theSO_BUSY_POLLoption on the socket. Seeman 7 tcpfor more details. -
setTcpNotSentLowAt
Set theTCP_NOTSENT_LOWAToption on the socket. Seeman 7 tcpfor more details.- Parameters:
tcpNotSentLowAt- is a uint32_t
-
setTrafficClass
- Specified by:
setTrafficClassin interfaceio.netty.channel.socket.SocketChannelConfig
-
setTcpKeepIdle
Set theTCP_KEEPIDLEoption on the socket. Seeman 7 tcpfor more details. -
setTcpKeepIntvl
Set theTCP_KEEPINTVLoption on the socket. Seeman 7 tcpfor more details. -
setTcpKeepCntl
Deprecated. -
setTcpKeepCnt
Set theTCP_KEEPCNToption on the socket. Seeman 7 tcpfor more details. -
setTcpUserTimeout
Set theTCP_USER_TIMEOUToption on the socket. Seeman 7 tcpfor more details. -
isIpTransparent
public boolean isIpTransparent() -
setIpTransparent
-
setTcpQuickAck
Set theTCP_QUICKACKoption on the socket. See TCP_QUICKACK for more details. -
isTcpQuickAck
public boolean isTcpQuickAck() -
setTcpFastOpenConnect
Enables client TCP fast open. See this LWN article for more info. -
isTcpFastOpenConnect
public boolean isTcpFastOpenConnect()ReturnstrueifTCP_FASTOPEN_CONNECTis enabled,falseotherwise. -
isAllowHalfClosure
public boolean isAllowHalfClosure()- Specified by:
isAllowHalfClosurein interfaceio.netty.channel.socket.DuplexChannelConfig
-
setAllowHalfClosure
- Specified by:
setAllowHalfClosurein interfaceio.netty.channel.socket.DuplexChannelConfig- Specified by:
setAllowHalfClosurein interfaceio.netty.channel.socket.SocketChannelConfig
-
setConnectTimeoutMillis
- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.ChannelConfig- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.socket.SocketChannelConfig- Overrides:
setConnectTimeoutMillisin classio.netty.channel.DefaultChannelConfig
-
setMaxMessagesPerRead
Deprecated.- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.ChannelConfig- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.socket.DuplexChannelConfig- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.socket.SocketChannelConfig- Overrides:
setMaxMessagesPerReadin classio.netty.channel.DefaultChannelConfig
-
setWriteSpinCount
- Specified by:
setWriteSpinCountin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteSpinCountin interfaceio.netty.channel.socket.DuplexChannelConfig- Specified by:
setWriteSpinCountin interfaceio.netty.channel.socket.SocketChannelConfig- Overrides:
setWriteSpinCountin classio.netty.channel.DefaultChannelConfig
-
setAllocator
- Specified by:
setAllocatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setAllocatorin interfaceio.netty.channel.socket.DuplexChannelConfig- Specified by:
setAllocatorin interfaceio.netty.channel.socket.SocketChannelConfig- Overrides:
setAllocatorin classio.netty.channel.DefaultChannelConfig
-
setRecvByteBufAllocator
public IOUringSocketChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) - Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.socket.DuplexChannelConfig- Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.socket.SocketChannelConfig- Overrides:
setRecvByteBufAllocatorin classio.netty.channel.DefaultChannelConfig
-
setAutoRead
- Specified by:
setAutoReadin interfaceio.netty.channel.ChannelConfig- Specified by:
setAutoReadin interfaceio.netty.channel.socket.DuplexChannelConfig- Specified by:
setAutoReadin interfaceio.netty.channel.socket.SocketChannelConfig- Overrides:
setAutoReadin classio.netty.channel.DefaultChannelConfig
-
setAutoClose
- Specified by:
setAutoClosein interfaceio.netty.channel.ChannelConfig- Specified by:
setAutoClosein interfaceio.netty.channel.socket.DuplexChannelConfig- Specified by:
setAutoClosein interfaceio.netty.channel.socket.SocketChannelConfig- Overrides:
setAutoClosein classio.netty.channel.DefaultChannelConfig
-
setWriteBufferHighWaterMark
@Deprecated public IOUringSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark) Deprecated.- Specified by:
setWriteBufferHighWaterMarkin interfaceio.netty.channel.ChannelConfig- Overrides:
setWriteBufferHighWaterMarkin classio.netty.channel.DefaultChannelConfig
-
setWriteBufferLowWaterMark
@Deprecated public IOUringSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark) Deprecated.- Specified by:
setWriteBufferLowWaterMarkin interfaceio.netty.channel.ChannelConfig- Overrides:
setWriteBufferLowWaterMarkin classio.netty.channel.DefaultChannelConfig
-
setWriteBufferWaterMark
public IOUringSocketChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark) - Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.socket.DuplexChannelConfig- Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.socket.SocketChannelConfig- Overrides:
setWriteBufferWaterMarkin classio.netty.channel.DefaultChannelConfig
-
setMessageSizeEstimator
public IOUringSocketChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) - Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.socket.DuplexChannelConfig- Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.socket.SocketChannelConfig- Overrides:
setMessageSizeEstimatorin classio.netty.channel.DefaultChannelConfig
-
setTcpKeepCnt(int)