Package io.netty.channel.kqueue
Class KQueueSocketChannelConfig
java.lang.Object
io.netty.channel.DefaultChannelConfig
io.netty.channel.kqueue.KQueueChannelConfig
io.netty.channel.kqueue.KQueueSocketChannelConfig
- All Implemented Interfaces:
io.netty.channel.ChannelConfig,io.netty.channel.socket.DuplexChannelConfig,io.netty.channel.socket.SocketChannelConfig
@UnstableApi
public final class KQueueSocketChannelConfig
extends KQueueChannelConfig
implements io.netty.channel.socket.SocketChannelConfig
-
Field Summary
Fields inherited from class io.netty.channel.DefaultChannelConfig
channel -
Method Summary
Modifier and TypeMethodDescription<T> TgetOption(io.netty.channel.ChannelOption<T> option) intintintintintbooleanbooleanbooleanbooleanReturnstrueif TCP fast open is enabled,falseotherwise.booleanbooleansetAllocator(io.netty.buffer.ByteBufAllocator allocator) setAllowHalfClosure(boolean allowHalfClosure) setAutoClose(boolean autoClose) setAutoRead(boolean autoRead) setConnectTimeoutMillis(int connectTimeoutMillis) 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) setRcvAllocTransportProvidesGuess(boolean transportProvidesGuess) If this istruethen theRecvByteBufAllocator.Handle.guess()will be overridden to always attempt to read as many bytes as kqueue says are available.setReceiveBufferSize(int receiveBufferSize) setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) setReuseAddress(boolean reuseAddress) setSendBufferSize(int sendBufferSize) voidsetSndLowAt(int sndLowAt) setSoLinger(int soLinger) setTcpFastOpenConnect(boolean fastOpenConnect) Enables client TCP fast open, if available.setTcpNoDelay(boolean tcpNoDelay) voidsetTcpNoPush(boolean tcpNoPush) 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.kqueue.KQueueChannelConfig
autoReadCleared, getRcvAllocTransportProvidesGuessMethods inherited from class io.netty.channel.DefaultChannelConfig
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
-
Method Details
-
getOptions
- Specified by:
getOptionsin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionsin classKQueueChannelConfig
-
getOption
public <T> T getOption(io.netty.channel.ChannelOption<T> option) - Specified by:
getOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionin classKQueueChannelConfig
-
setOption
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value) - Specified by:
setOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
setOptionin classKQueueChannelConfig
-
getReceiveBufferSize
public int getReceiveBufferSize()- Specified by:
getReceiveBufferSizein interfaceio.netty.channel.socket.SocketChannelConfig
-
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
-
getSndLowAt
public int getSndLowAt() -
setSndLowAt
public void setSndLowAt(int sndLowAt) -
isTcpNoPush
public boolean isTcpNoPush() -
setTcpNoPush
public void setTcpNoPush(boolean tcpNoPush) -
setKeepAlive
- Specified by:
setKeepAlivein 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
-
setSoLinger
- Specified by:
setSoLingerin interfaceio.netty.channel.socket.SocketChannelConfig
-
setTcpNoDelay
- Specified by:
setTcpNoDelayin interfaceio.netty.channel.socket.SocketChannelConfig
-
setTrafficClass
- Specified by:
setTrafficClassin interfaceio.netty.channel.socket.SocketChannelConfig
-
isAllowHalfClosure
public boolean isAllowHalfClosure()- Specified by:
isAllowHalfClosurein interfaceio.netty.channel.socket.DuplexChannelConfig
-
setTcpFastOpenConnect
Enables client TCP fast open, if available. -
isTcpFastOpenConnect
public boolean isTcpFastOpenConnect()Returnstrueif TCP fast open is enabled,falseotherwise. -
setRcvAllocTransportProvidesGuess
Description copied from class:KQueueChannelConfigIf this istruethen theRecvByteBufAllocator.Handle.guess()will be overridden to always attempt to read as many bytes as kqueue says are available.- Overrides:
setRcvAllocTransportProvidesGuessin classKQueueChannelConfig
-
setPerformancePreferences
public KQueueSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth) - Specified by:
setPerformancePreferencesin interfaceio.netty.channel.socket.SocketChannelConfig
-
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 classKQueueChannelConfig
-
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 classKQueueChannelConfig
-
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 classKQueueChannelConfig
-
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 classKQueueChannelConfig
-
setRecvByteBufAllocator
public KQueueSocketChannelConfig 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 classKQueueChannelConfig
-
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 classKQueueChannelConfig
-
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 KQueueSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark) Deprecated.- Specified by:
setWriteBufferHighWaterMarkin interfaceio.netty.channel.ChannelConfig- Overrides:
setWriteBufferHighWaterMarkin classKQueueChannelConfig
-
setWriteBufferLowWaterMark
@Deprecated public KQueueSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark) Deprecated.- Specified by:
setWriteBufferLowWaterMarkin interfaceio.netty.channel.ChannelConfig- Overrides:
setWriteBufferLowWaterMarkin classKQueueChannelConfig
-
setWriteBufferWaterMark
public KQueueSocketChannelConfig 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 classKQueueChannelConfig
-
setMessageSizeEstimator
public KQueueSocketChannelConfig 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 classKQueueChannelConfig
-