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
public final class KQueueSocketChannelConfig extends KQueueChannelConfig implements io.netty.channel.socket.SocketChannelConfig
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T> TgetOption(io.netty.channel.ChannelOption<T> option)Map<io.netty.channel.ChannelOption<?>,Object>getOptions()intgetReceiveBufferSize()intgetSendBufferSize()intgetSndLowAt()intgetSoLinger()intgetTrafficClass()booleanisAllowHalfClosure()booleanisKeepAlive()booleanisReuseAddress()booleanisTcpFastOpenConnect()Returnstrueif TCP fast open is enabled,falseotherwise.booleanisTcpNoDelay()booleanisTcpNoPush()KQueueSocketChannelConfigsetAllocator(io.netty.buffer.ByteBufAllocator allocator)KQueueSocketChannelConfigsetAllowHalfClosure(boolean allowHalfClosure)KQueueSocketChannelConfigsetAutoClose(boolean autoClose)KQueueSocketChannelConfigsetAutoRead(boolean autoRead)KQueueSocketChannelConfigsetConnectTimeoutMillis(int connectTimeoutMillis)KQueueSocketChannelConfigsetKeepAlive(boolean keepAlive)KQueueSocketChannelConfigsetMaxMessagesPerRead(int maxMessagesPerRead)Deprecated.KQueueSocketChannelConfigsetMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)<T> booleansetOption(io.netty.channel.ChannelOption<T> option, T value)KQueueSocketChannelConfigsetPerformancePreferences(int connectionTime, int latency, int bandwidth)KQueueSocketChannelConfigsetRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)If this istruethen theRecvByteBufAllocator.Handle.guess()will be overridden to always attempt to read as many bytes as kqueue says are available.KQueueSocketChannelConfigsetReceiveBufferSize(int receiveBufferSize)KQueueSocketChannelConfigsetRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)KQueueSocketChannelConfigsetReuseAddress(boolean reuseAddress)KQueueSocketChannelConfigsetSendBufferSize(int sendBufferSize)voidsetSndLowAt(int sndLowAt)KQueueSocketChannelConfigsetSoLinger(int soLinger)KQueueSocketChannelConfigsetTcpFastOpenConnect(boolean fastOpenConnect)Enables client TCP fast open, if available.KQueueSocketChannelConfigsetTcpNoDelay(boolean tcpNoDelay)voidsetTcpNoPush(boolean tcpNoPush)KQueueSocketChannelConfigsetTrafficClass(int trafficClass)KQueueSocketChannelConfigsetWriteBufferHighWaterMark(int writeBufferHighWaterMark)Deprecated.KQueueSocketChannelConfigsetWriteBufferLowWaterMark(int writeBufferLowWaterMark)Deprecated.KQueueSocketChannelConfigsetWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)KQueueSocketChannelConfigsetWriteSpinCount(int writeSpinCount)-
Methods inherited from class io.netty.channel.kqueue.KQueueChannelConfig
autoReadCleared, getRcvAllocTransportProvidesGuess
-
Methods inherited from class io.netty.channel.DefaultChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setMaxMessagesPerWrite, setOptions, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.channel.ChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions
-
-
-
-
Method Detail
-
getOptions
public Map<io.netty.channel.ChannelOption<?>,Object> 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
public KQueueSocketChannelConfig setKeepAlive(boolean keepAlive)
- Specified by:
setKeepAlivein interfaceio.netty.channel.socket.SocketChannelConfig
-
setReceiveBufferSize
public KQueueSocketChannelConfig setReceiveBufferSize(int receiveBufferSize)
- Specified by:
setReceiveBufferSizein interfaceio.netty.channel.socket.SocketChannelConfig
-
setReuseAddress
public KQueueSocketChannelConfig setReuseAddress(boolean reuseAddress)
- Specified by:
setReuseAddressin interfaceio.netty.channel.socket.SocketChannelConfig
-
setSendBufferSize
public KQueueSocketChannelConfig setSendBufferSize(int sendBufferSize)
- Specified by:
setSendBufferSizein interfaceio.netty.channel.socket.SocketChannelConfig
-
setSoLinger
public KQueueSocketChannelConfig setSoLinger(int soLinger)
- Specified by:
setSoLingerin interfaceio.netty.channel.socket.SocketChannelConfig
-
setTcpNoDelay
public KQueueSocketChannelConfig setTcpNoDelay(boolean tcpNoDelay)
- Specified by:
setTcpNoDelayin interfaceio.netty.channel.socket.SocketChannelConfig
-
setTrafficClass
public KQueueSocketChannelConfig setTrafficClass(int trafficClass)
- Specified by:
setTrafficClassin interfaceio.netty.channel.socket.SocketChannelConfig
-
isAllowHalfClosure
public boolean isAllowHalfClosure()
- Specified by:
isAllowHalfClosurein interfaceio.netty.channel.socket.DuplexChannelConfig
-
setTcpFastOpenConnect
public KQueueSocketChannelConfig setTcpFastOpenConnect(boolean fastOpenConnect)
Enables client TCP fast open, if available.
-
isTcpFastOpenConnect
public boolean isTcpFastOpenConnect()
Returnstrueif TCP fast open is enabled,falseotherwise.
-
setRcvAllocTransportProvidesGuess
public KQueueSocketChannelConfig setRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)
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
public KQueueSocketChannelConfig setAllowHalfClosure(boolean allowHalfClosure)
- Specified by:
setAllowHalfClosurein interfaceio.netty.channel.socket.DuplexChannelConfig- Specified by:
setAllowHalfClosurein interfaceio.netty.channel.socket.SocketChannelConfig
-
setConnectTimeoutMillis
public KQueueSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.ChannelConfig- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.socket.SocketChannelConfig- Overrides:
setConnectTimeoutMillisin classKQueueChannelConfig
-
setMaxMessagesPerRead
@Deprecated public KQueueSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
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
public KQueueSocketChannelConfig setWriteSpinCount(int writeSpinCount)
- 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
public KQueueSocketChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
- 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
public KQueueSocketChannelConfig setAutoRead(boolean autoRead)
- 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
public KQueueSocketChannelConfig setAutoClose(boolean autoClose)
- 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
-
-