程序包 | 说明 |
---|---|
org.jboss.netty.channel |
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
|
org.jboss.netty.channel.socket |
Abstract TCP and UDP socket interfaces which extend the core channel API.
|
org.jboss.netty.channel.socket.nio |
NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
|
限定符和类型 | 类和说明 |
---|---|
class |
AdaptiveReceiveBufferSizePredictor
The
ReceiveBufferSizePredictor that automatically increases and
decreases the predicted buffer size on feed back. |
class |
FixedReceiveBufferSizePredictor
The
ReceiveBufferSizePredictor that always yields the same buffer
size prediction. |
限定符和类型 | 方法和说明 |
---|---|
ReceiveBufferSizePredictor |
ReceiveBufferSizePredictorFactory.getPredictor()
Returns a newly created
ReceiveBufferSizePredictor . |
ReceiveBufferSizePredictor |
FixedReceiveBufferSizePredictorFactory.getPredictor() |
ReceiveBufferSizePredictor |
AdaptiveReceiveBufferSizePredictorFactory.getPredictor() |
限定符和类型 | 方法和说明 |
---|---|
ReceiveBufferSizePredictor |
DefaultDatagramChannelConfig.getReceiveBufferSizePredictor() |
ReceiveBufferSizePredictor |
DatagramChannelConfig.getReceiveBufferSizePredictor()
Returns the
ReceiveBufferSizePredictor which predicts the
number of readable bytes in the socket receive buffer. |
限定符和类型 | 方法和说明 |
---|---|
void |
DefaultDatagramChannelConfig.setReceiveBufferSizePredictor(ReceiveBufferSizePredictor predictor) |
void |
DatagramChannelConfig.setReceiveBufferSizePredictor(ReceiveBufferSizePredictor predictor)
Sets the
ReceiveBufferSizePredictor which predicts the
number of readable bytes in the socket receive buffer. |
限定符和类型 | 方法和说明 |
---|---|
ReceiveBufferSizePredictor |
NioSocketChannelConfig.getReceiveBufferSizePredictor()
Returns the
ReceiveBufferSizePredictor which predicts the
number of readable bytes in the socket receive buffer. |
限定符和类型 | 方法和说明 |
---|---|
void |
NioSocketChannelConfig.setReceiveBufferSizePredictor(ReceiveBufferSizePredictor predictor)
Sets the
ReceiveBufferSizePredictor which predicts the
number of readable bytes in the socket receive buffer. |