软件包 | 描述 |
---|---|
io.netty.channel.epoll |
为使用
EPOLL Edge-Triggered Mode获得最高性能的Linux优化传输。
|
io.netty.channel.kqueue |
BSD专用运输。
|
io.netty.channel.socket |
抽象扩展核心通道API的TCP和UDP套接字接口。
|
io.netty.channel.socket.nio |
基于
NIO的套接字通道API实现 - 推荐用于大量连接(> = 1000)。
|
io.netty.channel.socket.oio |
旧阻塞基于I / O的套接字通道API实现 - 建议少量连接(<1000)。
|
Modifier and Type | Class and Description |
---|---|
class |
EpollServerChannelConfig |
class |
EpollServerSocketChannelConfig |
Modifier and Type | Class and Description |
---|---|
class |
KQueueServerChannelConfig |
class |
KQueueServerSocketChannelConfig |
Modifier and Type | Class and Description |
---|---|
class |
DefaultServerSocketChannelConfig
|
Modifier and Type | Method and Description |
---|---|
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)
设置积压值以指定通道绑定到本地地址的时间。
|
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)
设置
ServerSocket.setPerformancePreferences(int, int, int) 指定的性能首选项。
|
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setPerformancePreferences(int connectionTime, int latency, int bandwidth) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setReceiveBufferSize(int receiveBufferSize)
获取
StandardSocketOptions.SO_SNDBUF 选项。
|
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setReceiveBufferSize(int receiveBufferSize) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
ServerSocketChannelConfig |
DefaultServerSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
ServerSocketChannelConfig |
ServerSocketChannelConfig.setReuseAddress(boolean reuseAddress)
设置
StandardSocketOptions.SO_REUSEADDR 选项。
|
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) |
Modifier and Type | Method and Description |
---|---|
ServerSocketChannelConfig |
NioServerSocketChannel.config() |
Modifier and Type | Interface and Description |
---|---|
interface |
OioServerSocketChannelConfig
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultOioServerSocketChannelConfig
|
Copyright © 2008–2018 The Netty Project. All rights reserved.