Package org.jboss.netty.channel
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
-
Interface Summary Interface Description Channel A nexus to a network socket or a component which is capable of I/O operations such as read, write, connect, and bind.ChannelConfig A set of configuration properties of aChannel.ChannelDownstreamHandler Handles or intercepts a downstreamChannelEvent, and sends aChannelEventto the next handler in aChannelPipeline.ChannelEvent An I/O event or I/O request associated with aChannel.ChannelFactory The main interface to a transport that creates aChannelassociated with a certain communication entity such as a network socket.ChannelFuture The result of an asynchronousChannelI/O operation.ChannelFutureListener Listens to the result of aChannelFuture.ChannelFutureProgressListener Listens to the progress of a time-consuming I/O operation such as a large file transfer.ChannelHandler Handles or intercepts aChannelEvent, and sends aChannelEventto the next handler in aChannelPipeline.ChannelHandlerContext Enables aChannelHandlerto interact with itsChannelPipelineand other handlers.ChannelPipeline ChannelPipelineFactory Creates a newChannelPipelinefor a newChannel.ChannelSink Receives and processes the terminal downstreamChannelEvents.ChannelStateEvent AChannelEventwhich represents the change of theChannelstate.ChannelUpstreamHandler Handles or intercepts an upstreamChannelEvent, and sends aChannelEventto the next handler in aChannelPipeline.ChildChannelStateEvent AChannelEventwhich represents the notification of the state of a childChannel.ExceptionEvent AChannelEventwhich represents the notification of an exception raised by aChannelHandleror an I/O thread.FileRegion A region of a file that is sent via aChannelwhich supports zero-copy file transfer.LifeCycleAwareChannelHandler AChannelHandlerthat is notified when it is added to or removed from aChannelPipeline.MessageEvent AChannelEventwhich represents the transmission or reception of a message.ReceiveBufferSizePredictor Predicts the number of readable bytes in the receive buffer of aChannel.ReceiveBufferSizePredictorFactory Creates a newReceiveBufferSizePredictor.ServerChannel ServerChannelFactory AChannelFactorythat creates aServerChannel.WriteCompletionEvent AChannelEventwhich represents the notification of the completion of a write request on aChannel. -
Class Summary Class Description AbstractChannel A skeletalChannelimplementation.AbstractChannelSink A skeletalChannelSinkimplementation.AbstractServerChannel A skeletal server-sideChannelimplementation.AdaptiveReceiveBufferSizePredictor TheReceiveBufferSizePredictorthat automatically increases and decreases the predicted buffer size on feed back.AdaptiveReceiveBufferSizePredictorFactory TheReceiveBufferSizePredictorFactorythat creates a newAdaptiveReceiveBufferSizePredictor.ChannelFutureNotifier ChannelFutureListener implementation which takes another ChannelFuture and notifies it once the operationComplete method was called.ChannelLocal<T> A global variable that is local to aChannel.Channels A helper class which provides various convenience methods related withChannel,ChannelHandler, andChannelPipeline.CompleteChannelFuture A skeletalChannelFutureimplementation which represents aChannelFuturewhich has been completed already.DefaultChannelConfig The defaultSocketChannelConfigimplementation.DefaultChannelFuture The defaultChannelFutureimplementation.DefaultChannelPipeline The defaultChannelPipelineimplementation.DefaultChannelPipeline.DiscardingChannelSink DefaultChildChannelStateEvent The defaultChildChannelStateEventimplementation.DefaultExceptionEvent The defaultExceptionEventimplementation.DefaultFileRegion DefaultServerChannelConfig The defaultServerSocketChannelConfigimplementation.DefaultWriteCompletionEvent The defaultWriteCompletionEventimplementation.DownstreamChannelStateEvent The default downstreamChannelStateEventimplementation.DownstreamMessageEvent The default downstreamMessageEventimplementation.FailedChannelFuture TheCompleteChannelFuturewhich is failed already.FixedReceiveBufferSizePredictor TheReceiveBufferSizePredictorthat always yields the same buffer size prediction.FixedReceiveBufferSizePredictorFactory TheReceiveBufferSizePredictorFactorythat returns aFixedReceiveBufferSizePredictorwith the pre-defined configuration.SimpleChannelDownstreamHandler AChannelDownstreamHandlerwhich provides an individual handler method for each event type.SimpleChannelHandler AChannelHandlerwhich provides an individual handler method for each event type.SimpleChannelUpstreamHandler AChannelUpstreamHandlerwhich provides an individual handler method for each event type.SucceededChannelFuture TheCompleteChannelFuturewhich is succeeded already.UpstreamChannelStateEvent The default upstreamChannelStateEventimplementation.UpstreamMessageEvent The default upstreamMessageEventimplementation. -
Enum Summary Enum Description ChannelState The current or future state of aChannel. -
Exception Summary Exception Description ChannelException ARuntimeExceptionwhich is thrown when an I/O operation fails.ChannelHandlerLifeCycleException ARuntimeExceptionwhich is thrown when aLifeCycleAwareChannelHandlerthrows anExceptionin its handler methods.ChannelPipelineException AChannelExceptionwhich is thrown when aChannelPipelinefailed to process aChannelEventor when aChannelPipelineFactoryfailed to initialize aChannelPipeline.ConnectTimeoutException ConnectExceptionwhich will be thrown if a connection could not be established because of a connection timeout. -
Annotation Types Summary Annotation Type Description ChannelHandler.Sharable Indicates that the same instance of the annotatedChannelHandlercan be added to one or moreChannelPipelines multiple times without a race condition.