Package org.jboss.netty.channel
package org.jboss.netty.channel
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
-
ClassDescriptionA skeletal
Channel
implementation.A skeletalChannelSink
implementation.A skeletal server-sideChannel
implementation.TheReceiveBufferSizePredictor
that automatically increases and decreases the predicted buffer size on feed back.TheReceiveBufferSizePredictorFactory
that creates a newAdaptiveReceiveBufferSizePredictor
.A nexus to a network socket or a component which is capable of I/O operations such as read, write, connect, and bind.A set of configuration properties of aChannel
.Handles or intercepts a downstreamChannelEvent
, and sends aChannelEvent
to the next handler in aChannelPipeline
.An I/O event or I/O request associated with aChannel
.ARuntimeException
which is thrown when an I/O operation fails.The main interface to a transport that creates aChannel
associated with a certain communication entity such as a network socket.The result of an asynchronousChannel
I/O operation.Listens to the result of aChannelFuture
.ChannelFutureListener implementation which takes another ChannelFuture and notifies it once the operationComplete method was called.Listens to the progress of a time-consuming I/O operation such as a large file transfer.Handles or intercepts aChannelEvent
, and sends aChannelEvent
to the next handler in aChannelPipeline
.Indicates that the same instance of the annotatedChannelHandler
can be added to one or moreChannelPipeline
s multiple times without a race condition.Enables aChannelHandler
to interact with itsChannelPipeline
and other handlers.ARuntimeException
which is thrown when aLifeCycleAwareChannelHandler
throws anException
in its handler methods.ChannelLocal<T>A global variable that is local to aChannel
.AChannelException
which is thrown when aChannelPipeline
failed to process aChannelEvent
or when aChannelPipelineFactory
failed to initialize aChannelPipeline
.Creates a newChannelPipeline
for a newChannel
.A helper class which provides various convenience methods related withChannel
,ChannelHandler
, andChannelPipeline
.Receives and processes the terminal downstreamChannelEvent
s.The current or future state of aChannel
.AChannelEvent
which represents the change of theChannel
state.Handles or intercepts an upstreamChannelEvent
, and sends aChannelEvent
to the next handler in aChannelPipeline
.AChannelEvent
which represents the notification of the state of a childChannel
.A skeletalChannelFuture
implementation which represents aChannelFuture
which has been completed already.ConnectException
which will be thrown if a connection could not be established because of a connection timeout.The defaultSocketChannelConfig
implementation.The defaultChannelFuture
implementation.The defaultChannelPipeline
implementation.The defaultChildChannelStateEvent
implementation.The defaultExceptionEvent
implementation.The defaultServerSocketChannelConfig
implementation.The defaultWriteCompletionEvent
implementation.The default downstreamChannelStateEvent
implementation.The default downstreamMessageEvent
implementation.AChannelEvent
which represents the notification of an exception raised by aChannelHandler
or an I/O thread.TheCompleteChannelFuture
which is failed already.A region of a file that is sent via aChannel
which supports zero-copy file transfer.TheReceiveBufferSizePredictor
that always yields the same buffer size prediction.TheReceiveBufferSizePredictorFactory
that returns aFixedReceiveBufferSizePredictor
with the pre-defined configuration.AChannelHandler
that is notified when it is added to or removed from aChannelPipeline
.AChannelEvent
which represents the transmission or reception of a message.Predicts the number of readable bytes in the receive buffer of aChannel
.Creates a newReceiveBufferSizePredictor
.AChannelFactory
that creates aServerChannel
.AChannelDownstreamHandler
which provides an individual handler method for each event type.AChannelHandler
which provides an individual handler method for each event type.AChannelUpstreamHandler
which provides an individual handler method for each event type.TheCompleteChannelFuture
which is succeeded already.The default upstreamChannelStateEvent
implementation.The default upstreamMessageEvent
implementation.AChannelEvent
which represents the notification of the completion of a write request on aChannel
.