程序包 | 说明 |
---|---|
io.netty.channel.epoll |
Optimized transport for linux which uses EPOLL Edge-Triggered Mode
for maximal performance.
|
io.netty.channel.socket |
Abstract TCP and UDP socket interfaces which extend the core channel API.
|
io.netty.channel.socket.nio |
NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
|
io.netty.channel.socket.oio |
Old blocking I/O based socket channel API implementation - recommended for
a small number of connections (< 1000).
|
限定符和类型 | 类和说明 |
---|---|
class |
EpollServerSocketChannelConfig |
限定符和类型 | 类和说明 |
---|---|
class |
DefaultServerSocketChannelConfig
The default
ServerSocketChannelConfig implementation. |
限定符和类型 | 方法和说明 |
---|---|
ServerSocketChannelConfig |
ServerSocketChannel.config() |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setAutoRead(boolean autoRead) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setAutoRead(boolean autoRead) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setBacklog(int backlog)
Sets the backlog value to specify when the channel binds to a local
address.
|
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setBacklog(int backlog) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setConnectTimeoutMillis(int connectTimeoutMillis) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setConnectTimeoutMillis(int connectTimeoutMillis) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setMaxMessagesPerRead(int maxMessagesPerRead) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setMaxMessagesPerRead(int maxMessagesPerRead) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setPerformancePreferences(int connectionTime,
int latency,
int bandwidth)
Sets the performance preferences as specified in
ServerSocket.setPerformancePreferences(int, int, int) . |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setPerformancePreferences(int connectionTime,
int latency,
int bandwidth) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setReceiveBufferSize(int receiveBufferSize)
Gets the
StandardSocketOptions.SO_SNDBUF option. |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setReceiveBufferSize(int receiveBufferSize) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setReuseAddress(boolean reuseAddress)
Sets the
StandardSocketOptions.SO_REUSEADDR option. |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setReuseAddress(boolean reuseAddress) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setWriteBufferHighWaterMark(int writeBufferHighWaterMark) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setWriteBufferLowWaterMark(int writeBufferLowWaterMark) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setWriteSpinCount(int writeSpinCount) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setWriteSpinCount(int writeSpinCount) |
限定符和类型 | 方法和说明 |
---|---|
ServerSocketChannelConfig |
NioServerSocketChannel.config() |
限定符和类型 | 接口和说明 |
---|---|
interface |
OioServerSocketChannelConfig
|
限定符和类型 | 类和说明 |
---|---|
class |
DefaultOioServerSocketChannelConfig
Default
OioServerSocketChannelConfig implementation |