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 |
isTcpFastOpenConnect()
Returns
true if TCP fast open is enabled, false otherwise. |
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 overridden 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 |
setTcpFastOpenConnect(boolean fastOpenConnect)
Enables client TCP fast open, if available.
|
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, getRcvAllocTransportProvidesGuessgetAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setMaxMessagesPerWrite, setOptions, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptionspublic Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
getOptions in interface io.netty.channel.ChannelConfiggetOptions in class KQueueChannelConfigpublic <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption in interface io.netty.channel.ChannelConfiggetOption in class KQueueChannelConfigpublic <T> boolean setOption(io.netty.channel.ChannelOption<T> option,
T value)
setOption in interface io.netty.channel.ChannelConfigsetOption in class KQueueChannelConfigpublic int getReceiveBufferSize()
getReceiveBufferSize in interface io.netty.channel.socket.SocketChannelConfigpublic int getSendBufferSize()
getSendBufferSize in interface io.netty.channel.socket.SocketChannelConfigpublic int getSoLinger()
getSoLinger in interface io.netty.channel.socket.SocketChannelConfigpublic int getTrafficClass()
getTrafficClass in interface io.netty.channel.socket.SocketChannelConfigpublic boolean isKeepAlive()
isKeepAlive in interface io.netty.channel.socket.SocketChannelConfigpublic boolean isReuseAddress()
isReuseAddress in interface io.netty.channel.socket.SocketChannelConfigpublic boolean isTcpNoDelay()
isTcpNoDelay in interface io.netty.channel.socket.SocketChannelConfigpublic 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.SocketChannelConfigpublic KQueueSocketChannelConfig setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize in interface io.netty.channel.socket.SocketChannelConfigpublic KQueueSocketChannelConfig setReuseAddress(boolean reuseAddress)
setReuseAddress in interface io.netty.channel.socket.SocketChannelConfigpublic KQueueSocketChannelConfig setSendBufferSize(int sendBufferSize)
setSendBufferSize in interface io.netty.channel.socket.SocketChannelConfigpublic KQueueSocketChannelConfig setSoLinger(int soLinger)
setSoLinger in interface io.netty.channel.socket.SocketChannelConfigpublic KQueueSocketChannelConfig setTcpNoDelay(boolean tcpNoDelay)
setTcpNoDelay in interface io.netty.channel.socket.SocketChannelConfigpublic KQueueSocketChannelConfig setTrafficClass(int trafficClass)
setTrafficClass in interface io.netty.channel.socket.SocketChannelConfigpublic boolean isAllowHalfClosure()
isAllowHalfClosure in interface io.netty.channel.socket.DuplexChannelConfigpublic KQueueSocketChannelConfig setTcpFastOpenConnect(boolean fastOpenConnect)
public boolean isTcpFastOpenConnect()
true if TCP fast open is enabled, false otherwise.public KQueueSocketChannelConfig setRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)
KQueueChannelConfigtrue then the RecvByteBufAllocator.Handle#guess() will be overridden to always attempt
to read as many bytes as kqueue says are available.setRcvAllocTransportProvidesGuess in class KQueueChannelConfigpublic KQueueSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences in interface io.netty.channel.socket.SocketChannelConfigpublic KQueueSocketChannelConfig setAllowHalfClosure(boolean allowHalfClosure)
setAllowHalfClosure in interface io.netty.channel.socket.DuplexChannelConfigsetAllowHalfClosure in interface io.netty.channel.socket.SocketChannelConfigpublic KQueueSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis in interface io.netty.channel.ChannelConfigsetConnectTimeoutMillis in interface io.netty.channel.socket.SocketChannelConfigsetConnectTimeoutMillis in class KQueueChannelConfig@Deprecated public KQueueSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead in interface io.netty.channel.ChannelConfigsetMaxMessagesPerRead in interface io.netty.channel.socket.DuplexChannelConfigsetMaxMessagesPerRead in interface io.netty.channel.socket.SocketChannelConfigsetMaxMessagesPerRead in class KQueueChannelConfigpublic KQueueSocketChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount in interface io.netty.channel.ChannelConfigsetWriteSpinCount in interface io.netty.channel.socket.DuplexChannelConfigsetWriteSpinCount in interface io.netty.channel.socket.SocketChannelConfigsetWriteSpinCount in class KQueueChannelConfigpublic KQueueSocketChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator in interface io.netty.channel.ChannelConfigsetAllocator in interface io.netty.channel.socket.DuplexChannelConfigsetAllocator in interface io.netty.channel.socket.SocketChannelConfigsetAllocator in class KQueueChannelConfigpublic KQueueSocketChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator in interface io.netty.channel.ChannelConfigsetRecvByteBufAllocator in interface io.netty.channel.socket.DuplexChannelConfigsetRecvByteBufAllocator in interface io.netty.channel.socket.SocketChannelConfigsetRecvByteBufAllocator in class KQueueChannelConfigpublic KQueueSocketChannelConfig setAutoRead(boolean autoRead)
setAutoRead in interface io.netty.channel.ChannelConfigsetAutoRead in interface io.netty.channel.socket.DuplexChannelConfigsetAutoRead in interface io.netty.channel.socket.SocketChannelConfigsetAutoRead in class KQueueChannelConfigpublic KQueueSocketChannelConfig setAutoClose(boolean autoClose)
setAutoClose in interface io.netty.channel.ChannelConfigsetAutoClose in interface io.netty.channel.socket.DuplexChannelConfigsetAutoClose in interface io.netty.channel.socket.SocketChannelConfigsetAutoClose in class io.netty.channel.DefaultChannelConfig@Deprecated public KQueueSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferHighWaterMark in class KQueueChannelConfig@Deprecated public KQueueSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferLowWaterMark in class KQueueChannelConfigpublic KQueueSocketChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferWaterMark in interface io.netty.channel.socket.DuplexChannelConfigsetWriteBufferWaterMark in interface io.netty.channel.socket.SocketChannelConfigsetWriteBufferWaterMark in class KQueueChannelConfigpublic KQueueSocketChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator in interface io.netty.channel.ChannelConfigsetMessageSizeEstimator in interface io.netty.channel.socket.DuplexChannelConfigsetMessageSizeEstimator in interface io.netty.channel.socket.SocketChannelConfigsetMessageSizeEstimator in class KQueueChannelConfigCopyright © 2008–2024 The Netty Project. All rights reserved.