@UnstableApi public final class KQueueSocketChannelConfig extends KQueueChannelConfig implements io.netty.channel.socket.SocketChannelConfig
Modifier and Type | Method and Description |
---|---|
<T> T |
getOption(io.netty.channel.ChannelOption<T> option) |
Map<io.netty.channel.ChannelOption<?>,Object> |
getOptions() |
int |
getReceiveBufferSize() |
int |
getSendBufferSize() |
int |
getSndLowAt() |
int |
getSoLinger() |
int |
getTrafficClass() |
boolean |
isAllowHalfClosure() |
boolean |
isKeepAlive() |
boolean |
isReuseAddress() |
boolean |
isTcpNoDelay() |
boolean |
isTcpNoPush() |
KQueueSocketChannelConfig |
setAllocator(io.netty.buffer.ByteBufAllocator allocator) |
KQueueSocketChannelConfig |
setAllowHalfClosure(boolean allowHalfClosure) |
KQueueSocketChannelConfig |
setAutoClose(boolean autoClose) |
KQueueSocketChannelConfig |
setAutoRead(boolean autoRead) |
KQueueSocketChannelConfig |
setConnectTimeoutMillis(int connectTimeoutMillis) |
KQueueSocketChannelConfig |
setKeepAlive(boolean keepAlive) |
KQueueSocketChannelConfig |
setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.
|
KQueueSocketChannelConfig |
setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) |
<T> boolean |
setOption(io.netty.channel.ChannelOption<T> option,
T value) |
KQueueSocketChannelConfig |
setPerformancePreferences(int connectionTime,
int latency,
int bandwidth) |
KQueueSocketChannelConfig |
setRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)
If this is
true then the RecvByteBufAllocator.Handle#guess() will be overriden to always attempt
to read as many bytes as kqueue says are available. |
KQueueSocketChannelConfig |
setReceiveBufferSize(int receiveBufferSize) |
KQueueSocketChannelConfig |
setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) |
KQueueSocketChannelConfig |
setReuseAddress(boolean reuseAddress) |
KQueueSocketChannelConfig |
setSendBufferSize(int sendBufferSize) |
void |
setSndLowAt(int sndLowAt) |
KQueueSocketChannelConfig |
setSoLinger(int soLinger) |
KQueueSocketChannelConfig |
setTcpNoDelay(boolean tcpNoDelay) |
void |
setTcpNoPush(boolean tcpNoPush) |
KQueueSocketChannelConfig |
setTrafficClass(int trafficClass) |
KQueueSocketChannelConfig |
setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.
|
KQueueSocketChannelConfig |
setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.
|
KQueueSocketChannelConfig |
setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark) |
KQueueSocketChannelConfig |
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 int getReceiveBufferSize()
getReceiveBufferSize
in interface io.netty.channel.socket.SocketChannelConfig
public int getSendBufferSize()
getSendBufferSize
in interface io.netty.channel.socket.SocketChannelConfig
public int getSoLinger()
getSoLinger
in interface io.netty.channel.socket.SocketChannelConfig
public int getTrafficClass()
getTrafficClass
in interface io.netty.channel.socket.SocketChannelConfig
public boolean isKeepAlive()
isKeepAlive
in interface io.netty.channel.socket.SocketChannelConfig
public boolean isReuseAddress()
isReuseAddress
in interface io.netty.channel.socket.SocketChannelConfig
public boolean isTcpNoDelay()
isTcpNoDelay
in interface io.netty.channel.socket.SocketChannelConfig
public int getSndLowAt()
public void setSndLowAt(int sndLowAt)
public boolean isTcpNoPush()
public void setTcpNoPush(boolean tcpNoPush)
public KQueueSocketChannelConfig setKeepAlive(boolean keepAlive)
setKeepAlive
in interface io.netty.channel.socket.SocketChannelConfig
public KQueueSocketChannelConfig setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize
in interface io.netty.channel.socket.SocketChannelConfig
public KQueueSocketChannelConfig setReuseAddress(boolean reuseAddress)
setReuseAddress
in interface io.netty.channel.socket.SocketChannelConfig
public KQueueSocketChannelConfig setSendBufferSize(int sendBufferSize)
setSendBufferSize
in interface io.netty.channel.socket.SocketChannelConfig
public KQueueSocketChannelConfig setSoLinger(int soLinger)
setSoLinger
in interface io.netty.channel.socket.SocketChannelConfig
public KQueueSocketChannelConfig setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay
in interface io.netty.channel.socket.SocketChannelConfig
public KQueueSocketChannelConfig setTrafficClass(int trafficClass)
setTrafficClass
in interface io.netty.channel.socket.SocketChannelConfig
public boolean isAllowHalfClosure()
isAllowHalfClosure
in interface io.netty.channel.socket.SocketChannelConfig
public KQueueSocketChannelConfig setRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)
KQueueChannelConfig
true
then the RecvByteBufAllocator.Handle#guess()
will be overriden to always attempt
to read as many bytes as kqueue says are available.setRcvAllocTransportProvidesGuess
in class KQueueChannelConfig
public KQueueSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences
in interface io.netty.channel.socket.SocketChannelConfig
public KQueueSocketChannelConfig setAllowHalfClosure(boolean allowHalfClosure)
setAllowHalfClosure
in interface io.netty.channel.socket.SocketChannelConfig
public KQueueSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis
in interface io.netty.channel.ChannelConfig
setConnectTimeoutMillis
in interface io.netty.channel.socket.SocketChannelConfig
setConnectTimeoutMillis
in class KQueueChannelConfig
@Deprecated public KQueueSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead
in interface io.netty.channel.ChannelConfig
setMaxMessagesPerRead
in interface io.netty.channel.socket.SocketChannelConfig
setMaxMessagesPerRead
in class KQueueChannelConfig
public KQueueSocketChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount
in interface io.netty.channel.ChannelConfig
setWriteSpinCount
in interface io.netty.channel.socket.SocketChannelConfig
setWriteSpinCount
in class KQueueChannelConfig
public KQueueSocketChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator
in interface io.netty.channel.ChannelConfig
setAllocator
in interface io.netty.channel.socket.SocketChannelConfig
setAllocator
in class KQueueChannelConfig
public KQueueSocketChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator
in interface io.netty.channel.ChannelConfig
setRecvByteBufAllocator
in interface io.netty.channel.socket.SocketChannelConfig
setRecvByteBufAllocator
in class KQueueChannelConfig
public KQueueSocketChannelConfig setAutoRead(boolean autoRead)
setAutoRead
in interface io.netty.channel.ChannelConfig
setAutoRead
in interface io.netty.channel.socket.SocketChannelConfig
setAutoRead
in class KQueueChannelConfig
public KQueueSocketChannelConfig setAutoClose(boolean autoClose)
setAutoClose
in interface io.netty.channel.ChannelConfig
setAutoClose
in interface io.netty.channel.socket.SocketChannelConfig
setAutoClose
in class io.netty.channel.DefaultChannelConfig
@Deprecated public KQueueSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferHighWaterMark
in class KQueueChannelConfig
@Deprecated public KQueueSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferLowWaterMark
in class KQueueChannelConfig
public KQueueSocketChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferWaterMark
in interface io.netty.channel.socket.SocketChannelConfig
setWriteBufferWaterMark
in class KQueueChannelConfig
public KQueueSocketChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator
in interface io.netty.channel.ChannelConfig
setMessageSizeEstimator
in interface io.netty.channel.socket.SocketChannelConfig
setMessageSizeEstimator
in class KQueueChannelConfig
Copyright © 2008–2019 The Netty Project. All rights reserved.