软件包 | 描述 |
---|---|
io.netty.channel.epoll |
针对Linux的优化传输,使用
EPOLL Edge-Triggered Mode获得最高性能。
|
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 |
EpollSocketChannelConfig |
Modifier and Type | Class and Description |
---|---|
class |
KQueueSocketChannelConfig |
Modifier and Type | Class and Description |
---|---|
class |
DefaultSocketChannelConfig
默认的 SocketChannelConfig 实现。
|
Modifier and Type | Method and Description |
---|---|
SocketChannelConfig |
SocketChannel.config() |
SocketChannelConfig |
SocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
SocketChannelConfig |
DefaultSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
SocketChannelConfig |
SocketChannelConfig.setAllowHalfClosure(boolean allowHalfClosure)
设置当远程对等关闭输出以使连接半关闭时,通道是否应该关闭。
|
SocketChannelConfig |
DefaultSocketChannelConfig.setAllowHalfClosure(boolean allowHalfClosure) |
SocketChannelConfig |
SocketChannelConfig.setAutoClose(boolean autoClose) |
SocketChannelConfig |
DefaultSocketChannelConfig.setAutoClose(boolean autoClose) |
SocketChannelConfig |
SocketChannelConfig.setAutoRead(boolean autoRead) |
SocketChannelConfig |
DefaultSocketChannelConfig.setAutoRead(boolean autoRead) |
SocketChannelConfig |
SocketChannelConfig.setConnectTimeoutMillis(int connectTimeoutMillis) |
SocketChannelConfig |
DefaultSocketChannelConfig.setConnectTimeoutMillis(int connectTimeoutMillis) |
SocketChannelConfig |
SocketChannelConfig.setKeepAlive(boolean keepAlive)
设置
StandardSocketOptions.SO_KEEPALIVE 选项。
|
SocketChannelConfig |
DefaultSocketChannelConfig.setKeepAlive(boolean keepAlive) |
SocketChannelConfig |
SocketChannelConfig.setMaxMessagesPerRead(int maxMessagesPerRead)
已过时。
|
SocketChannelConfig |
DefaultSocketChannelConfig.setMaxMessagesPerRead(int maxMessagesPerRead)
已过时。
|
SocketChannelConfig |
SocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
SocketChannelConfig |
DefaultSocketChannelConfig.setMessageSizeEstimator(MessageSizeEstimator estimator) |
SocketChannelConfig |
SocketChannelConfig.setPerformancePreferences(int connectionTime, int latency, int bandwidth)
设置
Socket.setPerformancePreferences(int, int, int) 指定的性能首选项。
|
SocketChannelConfig |
DefaultSocketChannelConfig.setPerformancePreferences(int connectionTime, int latency, int bandwidth) |
SocketChannelConfig |
SocketChannelConfig.setReceiveBufferSize(int receiveBufferSize)
设置
StandardSocketOptions.SO_RCVBUF 选项。
|
SocketChannelConfig |
DefaultSocketChannelConfig.setReceiveBufferSize(int receiveBufferSize) |
SocketChannelConfig |
SocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
SocketChannelConfig |
DefaultSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
SocketChannelConfig |
SocketChannelConfig.setReuseAddress(boolean reuseAddress)
设置
StandardSocketOptions.SO_REUSEADDR 选项。
|
SocketChannelConfig |
DefaultSocketChannelConfig.setReuseAddress(boolean reuseAddress) |
SocketChannelConfig |
SocketChannelConfig.setSendBufferSize(int sendBufferSize)
设置
StandardSocketOptions.SO_SNDBUF 选项。
|
SocketChannelConfig |
DefaultSocketChannelConfig.setSendBufferSize(int sendBufferSize) |
SocketChannelConfig |
SocketChannelConfig.setSoLinger(int soLinger)
设置
StandardSocketOptions.SO_LINGER 选项。
|
SocketChannelConfig |
DefaultSocketChannelConfig.setSoLinger(int soLinger) |
SocketChannelConfig |
SocketChannelConfig.setTcpNoDelay(boolean tcpNoDelay)
设置
StandardSocketOptions.TCP_NODELAY 选项。
|
SocketChannelConfig |
DefaultSocketChannelConfig.setTcpNoDelay(boolean tcpNoDelay) |
SocketChannelConfig |
SocketChannelConfig.setTrafficClass(int trafficClass)
设置
StandardSocketOptions.IP_TOS 选项。
|
SocketChannelConfig |
DefaultSocketChannelConfig.setTrafficClass(int trafficClass) |
SocketChannelConfig |
DefaultSocketChannelConfig.setWriteBufferHighWaterMark(int writeBufferHighWaterMark) |
SocketChannelConfig |
DefaultSocketChannelConfig.setWriteBufferLowWaterMark(int writeBufferLowWaterMark) |
SocketChannelConfig |
SocketChannelConfig.setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark) |
SocketChannelConfig |
DefaultSocketChannelConfig.setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark) |
SocketChannelConfig |
SocketChannelConfig.setWriteSpinCount(int writeSpinCount) |
SocketChannelConfig |
DefaultSocketChannelConfig.setWriteSpinCount(int writeSpinCount) |
Modifier and Type | Method and Description |
---|---|
SocketChannelConfig |
NioSocketChannel.config() |
Modifier and Type | Interface and Description |
---|---|
interface |
OioSocketChannelConfig
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultOioSocketChannelConfig
Default
OioSocketChannelConfig implementation
|
Copyright © 2008–2018 The Netty Project. All rights reserved.