Package io.netty.channel.kqueue
Class KQueueDomainSocketChannelConfig
java.lang.Object
io.netty.channel.DefaultChannelConfig
io.netty.channel.kqueue.KQueueChannelConfig
io.netty.channel.kqueue.KQueueDomainSocketChannelConfig
- All Implemented Interfaces:
io.netty.channel.ChannelConfig,io.netty.channel.socket.DuplexChannelConfig,io.netty.channel.unix.DomainSocketChannelConfig
@UnstableApi
public final class KQueueDomainSocketChannelConfig
extends KQueueChannelConfig
implements io.netty.channel.unix.DomainSocketChannelConfig, io.netty.channel.socket.DuplexChannelConfig
-
Field Summary
Fields inherited from class io.netty.channel.DefaultChannelConfig
channel -
Method Summary
Modifier and TypeMethodDescription<T> TgetOption(io.netty.channel.ChannelOption<T> option) io.netty.channel.unix.DomainSocketReadModeintintbooleansetAllocator(io.netty.buffer.ByteBufAllocator allocator) setAllowHalfClosure(boolean allowHalfClosure) setAutoClose(boolean autoClose) setAutoRead(boolean autoRead) setConnectTimeoutMillis(int connectTimeoutMillis) setMaxMessagesPerRead(int maxMessagesPerRead) Deprecated.setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) <T> booleansetOption(io.netty.channel.ChannelOption<T> option, T value) 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.setReadMode(io.netty.channel.unix.DomainSocketReadMode mode) setReceiveBufferSize(int receiveBufferSize) setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) setSendBufferSize(int sendBufferSize) 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
-
setRcvAllocTransportProvidesGuess
public KQueueDomainSocketChannelConfig 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
-
setMaxMessagesPerRead
Deprecated.- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.ChannelConfig- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setMaxMessagesPerReadin classKQueueChannelConfig
-
setConnectTimeoutMillis
- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.ChannelConfig- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Overrides:
setConnectTimeoutMillisin classKQueueChannelConfig
-
setWriteSpinCount
- Specified by:
setWriteSpinCountin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteSpinCountin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setWriteSpinCountin interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setWriteSpinCountin classKQueueChannelConfig
-
setRecvByteBufAllocator
public KQueueDomainSocketChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) - Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setRecvByteBufAllocatorin classKQueueChannelConfig
-
setAllocator
- Specified by:
setAllocatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setAllocatorin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setAllocatorin interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setAllocatorin classKQueueChannelConfig
-
setAutoClose
- Specified by:
setAutoClosein interfaceio.netty.channel.ChannelConfig- Specified by:
setAutoClosein interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setAutoClosein interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setAutoClosein classio.netty.channel.DefaultChannelConfig
-
setMessageSizeEstimator
public KQueueDomainSocketChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) - Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setMessageSizeEstimatorin classKQueueChannelConfig
-
setWriteBufferLowWaterMark
@Deprecated public KQueueDomainSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark) Deprecated.- Specified by:
setWriteBufferLowWaterMarkin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteBufferLowWaterMarkin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Overrides:
setWriteBufferLowWaterMarkin classKQueueChannelConfig
-
setWriteBufferHighWaterMark
@Deprecated public KQueueDomainSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark) Deprecated.- Specified by:
setWriteBufferHighWaterMarkin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteBufferHighWaterMarkin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Overrides:
setWriteBufferHighWaterMarkin classKQueueChannelConfig
-
setWriteBufferWaterMark
public KQueueDomainSocketChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark) - Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setWriteBufferWaterMarkin classKQueueChannelConfig
-
setAutoRead
- Specified by:
setAutoReadin interfaceio.netty.channel.ChannelConfig- Specified by:
setAutoReadin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setAutoReadin interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setAutoReadin classKQueueChannelConfig
-
setReadMode
- Specified by:
setReadModein interfaceio.netty.channel.unix.DomainSocketChannelConfig
-
getReadMode
public io.netty.channel.unix.DomainSocketReadMode getReadMode()- Specified by:
getReadModein interfaceio.netty.channel.unix.DomainSocketChannelConfig
-
getSendBufferSize
public int getSendBufferSize() -
setSendBufferSize
-
getReceiveBufferSize
public int getReceiveBufferSize() -
setReceiveBufferSize
-
isAllowHalfClosure
public boolean isAllowHalfClosure()- Specified by:
isAllowHalfClosurein interfaceio.netty.channel.socket.DuplexChannelConfig
-
setAllowHalfClosure
- Specified by:
setAllowHalfClosurein interfaceio.netty.channel.socket.DuplexChannelConfig
-