程序包 | 说明 |
---|---|
io.netty.channel.epoll |
Optimized transport for linux which uses EPOLL Edge-Triggered Mode
for maximal performance.
|
io.netty.channel.kqueue |
BSD specific transport.
|
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 |
EpollServerChannelConfig |
class |
EpollServerSocketChannelConfig |
限定符和类型 | 类和说明 |
---|---|
class |
KQueueServerChannelConfig |
class |
KQueueServerSocketChannelConfig |
限定符和类型 | 类和说明 |
---|---|
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 |
ServerSocketChannelConfig.setWriteBufferHighWaterMark(int writeBufferHighWaterMark) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setWriteBufferHighWaterMark(int writeBufferHighWaterMark) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setWriteBufferLowWaterMark(int writeBufferLowWaterMark) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setWriteBufferLowWaterMark(int writeBufferLowWaterMark) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setWriteSpinCount(int writeSpinCount) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setWriteSpinCount(int writeSpinCount) |
限定符和类型 | 方法和说明 |
---|---|
ServerSocketChannelConfig |
NioServerSocketChannel.config() |
限定符和类型 | 接口和说明 |
---|---|
interface |
OioServerSocketChannelConfig
已过时。
use NIO / EPOLL / KQUEUE transport.
|
限定符和类型 | 类和说明 |
---|---|
class |
DefaultOioServerSocketChannelConfig
已过时。
use NIO / EPOLL / KQUEUE transport.
|