Package | Description |
---|---|
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).
|
Modifier and Type | Class and Description |
---|---|
class |
EpollSocketChannelConfig |
Modifier and Type | Class and Description |
---|---|
class |
DefaultSocketChannelConfig
The default
SocketChannelConfig implementation. |
Modifier and Type | Method and Description |
---|---|
SocketChannelConfig |
SocketChannel.config() |
SocketChannelConfig |
SocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
SocketChannelConfig |
DefaultSocketChannelConfig.setAllocator(ByteBufAllocator allocator) |
SocketChannelConfig |
SocketChannelConfig.setAllowHalfClosure(boolean allowHalfClosure)
Sets whether the channel should not close itself when its remote peer shuts down output to
make the connection half-closed.
|
SocketChannelConfig |
DefaultSocketChannelConfig.setAllowHalfClosure(boolean allowHalfClosure) |
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)
Sets the
StandardSocketOptions.SO_KEEPALIVE option. |
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)
Sets the performance preferences as specified in
Socket.setPerformancePreferences(int, int, int) . |
SocketChannelConfig |
DefaultSocketChannelConfig.setPerformancePreferences(int connectionTime,
int latency,
int bandwidth) |
SocketChannelConfig |
SocketChannelConfig.setReceiveBufferSize(int receiveBufferSize)
Sets the
StandardSocketOptions.SO_RCVBUF option. |
SocketChannelConfig |
DefaultSocketChannelConfig.setReceiveBufferSize(int receiveBufferSize) |
SocketChannelConfig |
SocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
SocketChannelConfig |
DefaultSocketChannelConfig.setRecvByteBufAllocator(RecvByteBufAllocator allocator) |
SocketChannelConfig |
SocketChannelConfig.setReuseAddress(boolean reuseAddress)
Sets the
StandardSocketOptions.SO_REUSEADDR option. |
SocketChannelConfig |
DefaultSocketChannelConfig.setReuseAddress(boolean reuseAddress) |
SocketChannelConfig |
SocketChannelConfig.setSendBufferSize(int sendBufferSize)
Sets the
StandardSocketOptions.SO_SNDBUF option. |
SocketChannelConfig |
DefaultSocketChannelConfig.setSendBufferSize(int sendBufferSize) |
SocketChannelConfig |
SocketChannelConfig.setSoLinger(int soLinger)
Sets the
StandardSocketOptions.SO_LINGER option. |
SocketChannelConfig |
DefaultSocketChannelConfig.setSoLinger(int soLinger) |
SocketChannelConfig |
SocketChannelConfig.setTcpNoDelay(boolean tcpNoDelay)
Sets the
StandardSocketOptions.TCP_NODELAY option. |
SocketChannelConfig |
DefaultSocketChannelConfig.setTcpNoDelay(boolean tcpNoDelay) |
SocketChannelConfig |
SocketChannelConfig.setTrafficClass(int trafficClass)
Sets the
StandardSocketOptions.IP_TOS option. |
SocketChannelConfig |
DefaultSocketChannelConfig.setTrafficClass(int trafficClass) |
SocketChannelConfig |
DefaultSocketChannelConfig.setWriteBufferHighWaterMark(int writeBufferHighWaterMark) |
SocketChannelConfig |
DefaultSocketChannelConfig.setWriteBufferLowWaterMark(int writeBufferLowWaterMark) |
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
A
ChannelConfig for a OioSocketChannel . |
Modifier and Type | Class and Description |
---|---|
class |
DefaultOioSocketChannelConfig
Default
OioSocketChannelConfig implementation |
Copyright © 2008–2015 The Netty Project. All rights reserved.