@UnstableApi public final class KQueueDomainSocketChannelConfig extends KQueueChannelConfig implements io.netty.channel.unix.DomainSocketChannelConfig
Modifier and Type | Method and Description |
---|---|
<T> T |
getOption(io.netty.channel.ChannelOption<T> option) |
Map<io.netty.channel.ChannelOption<?>,Object> |
getOptions() |
io.netty.channel.unix.DomainSocketReadMode |
getReadMode() |
int |
getReceiveBufferSize() |
int |
getSendBufferSize() |
boolean |
isAllowHalfClosure() |
KQueueDomainSocketChannelConfig |
setAllocator(io.netty.buffer.ByteBufAllocator allocator) |
KQueueDomainSocketChannelConfig |
setAllowHalfClosure(boolean allowHalfClosure) |
KQueueDomainSocketChannelConfig |
setAutoClose(boolean autoClose) |
KQueueDomainSocketChannelConfig |
setAutoRead(boolean autoRead) |
KQueueDomainSocketChannelConfig |
setConnectTimeoutMillis(int connectTimeoutMillis) |
KQueueDomainSocketChannelConfig |
setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.
|
KQueueDomainSocketChannelConfig |
setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) |
<T> boolean |
setOption(io.netty.channel.ChannelOption<T> option,
T value) |
KQueueDomainSocketChannelConfig |
setRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)
If this is
true then the RecvByteBufAllocator.Handle#guess() will be overridden to always attempt
to read as many bytes as kqueue says are available. |
KQueueDomainSocketChannelConfig |
setReadMode(io.netty.channel.unix.DomainSocketReadMode mode) |
KQueueDomainSocketChannelConfig |
setReceiveBufferSize(int receiveBufferSize) |
KQueueDomainSocketChannelConfig |
setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) |
KQueueDomainSocketChannelConfig |
setSendBufferSize(int sendBufferSize) |
KQueueDomainSocketChannelConfig |
setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.
|
KQueueDomainSocketChannelConfig |
setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.
|
KQueueDomainSocketChannelConfig |
setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark) |
KQueueDomainSocketChannelConfig |
setWriteSpinCount(int writeSpinCount) |
autoReadCleared, getRcvAllocTransportProvidesGuess
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions
public Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
getOptions
in interface io.netty.channel.ChannelConfig
getOptions
in class KQueueChannelConfig
public <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption
in interface io.netty.channel.ChannelConfig
getOption
in class KQueueChannelConfig
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value)
setOption
in interface io.netty.channel.ChannelConfig
setOption
in class KQueueChannelConfig
public KQueueDomainSocketChannelConfig setRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)
KQueueChannelConfig
true
then the RecvByteBufAllocator.Handle#guess()
will be overridden to always attempt
to read as many bytes as kqueue says are available.setRcvAllocTransportProvidesGuess
in class KQueueChannelConfig
@Deprecated public KQueueDomainSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead
in interface io.netty.channel.ChannelConfig
setMaxMessagesPerRead
in interface io.netty.channel.unix.DomainSocketChannelConfig
setMaxMessagesPerRead
in class KQueueChannelConfig
public KQueueDomainSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis
in interface io.netty.channel.ChannelConfig
setConnectTimeoutMillis
in interface io.netty.channel.unix.DomainSocketChannelConfig
setConnectTimeoutMillis
in class KQueueChannelConfig
public KQueueDomainSocketChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount
in interface io.netty.channel.ChannelConfig
setWriteSpinCount
in interface io.netty.channel.unix.DomainSocketChannelConfig
setWriteSpinCount
in class KQueueChannelConfig
public KQueueDomainSocketChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator
in interface io.netty.channel.ChannelConfig
setRecvByteBufAllocator
in interface io.netty.channel.unix.DomainSocketChannelConfig
setRecvByteBufAllocator
in class KQueueChannelConfig
public KQueueDomainSocketChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator
in interface io.netty.channel.ChannelConfig
setAllocator
in interface io.netty.channel.unix.DomainSocketChannelConfig
setAllocator
in class KQueueChannelConfig
public KQueueDomainSocketChannelConfig setAutoClose(boolean autoClose)
setAutoClose
in interface io.netty.channel.ChannelConfig
setAutoClose
in interface io.netty.channel.unix.DomainSocketChannelConfig
setAutoClose
in class io.netty.channel.DefaultChannelConfig
public KQueueDomainSocketChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator
in interface io.netty.channel.ChannelConfig
setMessageSizeEstimator
in interface io.netty.channel.unix.DomainSocketChannelConfig
setMessageSizeEstimator
in class KQueueChannelConfig
@Deprecated public KQueueDomainSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferLowWaterMark
in interface io.netty.channel.unix.DomainSocketChannelConfig
setWriteBufferLowWaterMark
in class KQueueChannelConfig
@Deprecated public KQueueDomainSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferHighWaterMark
in interface io.netty.channel.unix.DomainSocketChannelConfig
setWriteBufferHighWaterMark
in class KQueueChannelConfig
public KQueueDomainSocketChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferWaterMark
in interface io.netty.channel.unix.DomainSocketChannelConfig
setWriteBufferWaterMark
in class KQueueChannelConfig
public KQueueDomainSocketChannelConfig setAutoRead(boolean autoRead)
setAutoRead
in interface io.netty.channel.ChannelConfig
setAutoRead
in interface io.netty.channel.unix.DomainSocketChannelConfig
setAutoRead
in class KQueueChannelConfig
public KQueueDomainSocketChannelConfig setReadMode(io.netty.channel.unix.DomainSocketReadMode mode)
setReadMode
in interface io.netty.channel.unix.DomainSocketChannelConfig
public io.netty.channel.unix.DomainSocketReadMode getReadMode()
getReadMode
in interface io.netty.channel.unix.DomainSocketChannelConfig
public int getSendBufferSize()
public KQueueDomainSocketChannelConfig setSendBufferSize(int sendBufferSize)
public int getReceiveBufferSize()
public KQueueDomainSocketChannelConfig setReceiveBufferSize(int receiveBufferSize)
public boolean isAllowHalfClosure()
SocketChannelConfig.isAllowHalfClosure()
public KQueueDomainSocketChannelConfig setAllowHalfClosure(boolean allowHalfClosure)
SocketChannelConfig.setAllowHalfClosure(boolean)
Copyright © 2008–2020 The Netty Project. All rights reserved.