@UnstableApi public class KQueueServerChannelConfig extends KQueueChannelConfig implements io.netty.channel.socket.ServerSocketChannelConfig
Modifier and Type | Field and Description |
---|---|
protected io.netty.channel.kqueue.AbstractKQueueChannel |
channel |
Modifier and Type | Method and Description |
---|---|
int |
getBacklog() |
<T> T |
getOption(io.netty.channel.ChannelOption<T> option) |
Map<io.netty.channel.ChannelOption<?>,Object> |
getOptions() |
int |
getReceiveBufferSize() |
boolean |
isReuseAddress() |
KQueueServerChannelConfig |
setAllocator(io.netty.buffer.ByteBufAllocator allocator) |
KQueueServerChannelConfig |
setAutoRead(boolean autoRead) |
KQueueServerChannelConfig |
setBacklog(int backlog) |
KQueueServerChannelConfig |
setConnectTimeoutMillis(int connectTimeoutMillis) |
KQueueServerChannelConfig |
setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.
|
KQueueServerChannelConfig |
setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) |
<T> boolean |
setOption(io.netty.channel.ChannelOption<T> option,
T value) |
KQueueServerChannelConfig |
setPerformancePreferences(int connectionTime,
int latency,
int bandwidth) |
KQueueServerChannelConfig |
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. |
KQueueServerChannelConfig |
setReceiveBufferSize(int receiveBufferSize) |
KQueueServerChannelConfig |
setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) |
KQueueServerChannelConfig |
setReuseAddress(boolean reuseAddress) |
KQueueServerChannelConfig |
setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.
|
KQueueServerChannelConfig |
setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.
|
KQueueServerChannelConfig |
setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark) |
KQueueServerChannelConfig |
setWriteSpinCount(int writeSpinCount) |
autoReadCleared, getRcvAllocTransportProvidesGuess
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptions, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, 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 boolean isReuseAddress()
isReuseAddress
in interface io.netty.channel.socket.ServerSocketChannelConfig
public KQueueServerChannelConfig setReuseAddress(boolean reuseAddress)
setReuseAddress
in interface io.netty.channel.socket.ServerSocketChannelConfig
public int getReceiveBufferSize()
getReceiveBufferSize
in interface io.netty.channel.socket.ServerSocketChannelConfig
public KQueueServerChannelConfig setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize
in interface io.netty.channel.socket.ServerSocketChannelConfig
public int getBacklog()
getBacklog
in interface io.netty.channel.socket.ServerSocketChannelConfig
public KQueueServerChannelConfig setBacklog(int backlog)
setBacklog
in interface io.netty.channel.socket.ServerSocketChannelConfig
public KQueueServerChannelConfig 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 KQueueServerChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)
setPerformancePreferences
in interface io.netty.channel.socket.ServerSocketChannelConfig
public KQueueServerChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis
in interface io.netty.channel.ChannelConfig
setConnectTimeoutMillis
in interface io.netty.channel.socket.ServerSocketChannelConfig
setConnectTimeoutMillis
in class KQueueChannelConfig
@Deprecated public KQueueServerChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead
in interface io.netty.channel.ChannelConfig
setMaxMessagesPerRead
in interface io.netty.channel.socket.ServerSocketChannelConfig
setMaxMessagesPerRead
in class KQueueChannelConfig
public KQueueServerChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount
in interface io.netty.channel.ChannelConfig
setWriteSpinCount
in interface io.netty.channel.socket.ServerSocketChannelConfig
setWriteSpinCount
in class KQueueChannelConfig
public KQueueServerChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator
in interface io.netty.channel.ChannelConfig
setAllocator
in interface io.netty.channel.socket.ServerSocketChannelConfig
setAllocator
in class KQueueChannelConfig
public KQueueServerChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator
in interface io.netty.channel.ChannelConfig
setRecvByteBufAllocator
in interface io.netty.channel.socket.ServerSocketChannelConfig
setRecvByteBufAllocator
in class KQueueChannelConfig
public KQueueServerChannelConfig setAutoRead(boolean autoRead)
setAutoRead
in interface io.netty.channel.ChannelConfig
setAutoRead
in interface io.netty.channel.socket.ServerSocketChannelConfig
setAutoRead
in class KQueueChannelConfig
@Deprecated public KQueueServerChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferHighWaterMark
in interface io.netty.channel.socket.ServerSocketChannelConfig
setWriteBufferHighWaterMark
in class KQueueChannelConfig
@Deprecated public KQueueServerChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferLowWaterMark
in interface io.netty.channel.socket.ServerSocketChannelConfig
setWriteBufferLowWaterMark
in class KQueueChannelConfig
public KQueueServerChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferWaterMark
in interface io.netty.channel.socket.ServerSocketChannelConfig
setWriteBufferWaterMark
in class KQueueChannelConfig
public KQueueServerChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator
in interface io.netty.channel.ChannelConfig
setMessageSizeEstimator
in interface io.netty.channel.socket.ServerSocketChannelConfig
setMessageSizeEstimator
in class KQueueChannelConfig
Copyright © 2008–2017 The Netty Project. All rights reserved.