Uses of Interface
org.jboss.netty.channel.ChannelEvent
Packages that use ChannelEvent
Package
Description
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
A virtual transport that enables the communication between the two
parties in the same virtual machine.
An HTTP-based client-side
SocketChannel
and its corresponding server-side Servlet implementation that make your
existing server application work in a firewalled network.NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
Old blocking I/O based socket channel API implementation - recommended for
a small number of connections (< 1000).
Encoder and decoder which compresses and decompresses
ChannelBuffer
s
in a compression format such as zlib
and gzip.A helper that wraps an encoder or a decoder so that they can be used without
doing actual I/O in unit tests or higher level codecs.
Encoder, decoder and their related message types for HTTP.
Simplistic abstract classes which help implement encoder and decoder that
transform an object into another object and vice versa.
Encoder, decoder, session handler and their related message types for the SPDY protocol.
Executor
-based implementation of various
thread models that separate business logic from I/O threadsImplementation of a Ip based Filter handlers.
Logs a
ChannelEvent
for debugging purpose
using an InternalLogger
.The special-purpose handlers that store an event into an internal queue
instead of propagating the event immediately.
Writes very large data stream asynchronously neither spending a lot of
memory nor getting
OutOfMemoryError
.Adds support for read and write timeout and idle connection notification
using a
Timer
.-
Uses of ChannelEvent in org.jboss.netty.channel
Subinterfaces of ChannelEvent in org.jboss.netty.channelModifier and TypeInterfaceDescriptioninterface
AChannelEvent
which represents the change of theChannel
state.interface
AChannelEvent
which represents the notification of the state of a childChannel
.interface
AChannelEvent
which represents the notification of an exception raised by aChannelHandler
or an I/O thread.interface
AChannelEvent
which represents the transmission or reception of a message.interface
AChannelEvent
which represents the notification of the completion of a write request on aChannel
.Classes in org.jboss.netty.channel that implement ChannelEventModifier and TypeClassDescriptionclass
The defaultChildChannelStateEvent
implementation.class
The defaultExceptionEvent
implementation.class
The defaultWriteCompletionEvent
implementation.class
The default downstreamChannelStateEvent
implementation.class
The default downstreamMessageEvent
implementation.class
The default upstreamChannelStateEvent
implementation.class
The default upstreamMessageEvent
implementation.Methods in org.jboss.netty.channel with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
ChannelSink.eventSunk
(ChannelPipeline pipeline, ChannelEvent e) Invoked byChannelPipeline
when a downstreamChannelEvent
has reached its terminal (the head of the pipeline).void
DefaultChannelPipeline.DiscardingChannelSink.eventSunk
(ChannelPipeline pipeline, ChannelEvent e) void
AbstractChannelSink.exceptionCaught
(ChannelPipeline pipeline, ChannelEvent event, ChannelPipelineException cause) Sends anExceptionEvent
upstream with the specifiedcause
.void
ChannelSink.exceptionCaught
(ChannelPipeline pipeline, ChannelEvent e, ChannelPipelineException cause) Invoked byChannelPipeline
when an exception was raised while one of itsChannelHandler
s process aChannelEvent
.void
DefaultChannelPipeline.DiscardingChannelSink.exceptionCaught
(ChannelPipeline pipeline, ChannelEvent e, ChannelPipelineException cause) void
ChannelDownstreamHandler.handleDownstream
(ChannelHandlerContext ctx, ChannelEvent e) Handles the specified downstream event.void
SimpleChannelDownstreamHandler.handleDownstream
(ChannelHandlerContext ctx, ChannelEvent e) Handles the specified downstream event.void
SimpleChannelHandler.handleDownstream
(ChannelHandlerContext ctx, ChannelEvent e) Handles the specified downstream event.void
ChannelUpstreamHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) Handles the specified upstream event.void
SimpleChannelHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) Handles the specified upstream event.void
SimpleChannelUpstreamHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) Handles the specified upstream event.protected boolean
AbstractChannelSink.isFireExceptionCaughtLater
(ChannelEvent event, Throwable actualCause) Returnstrue
if and only if the specifiedactualCause
, which was raised while handling the specifiedevent
, must trigger anexceptionCaught()
event in an I/O thread.protected void
DefaultChannelPipeline.notifyHandlerException
(ChannelEvent e, Throwable t) void
ChannelHandlerContext.sendDownstream
(ChannelEvent e) Sends the specifiedChannelEvent
to theChannelDownstreamHandler
which is placed in the closest downstream from the handler associated with this context.void
ChannelPipeline.sendDownstream
(ChannelEvent e) Sends the specifiedChannelEvent
to the lastChannelDownstreamHandler
in this pipeline.void
DefaultChannelPipeline.DefaultChannelHandlerContext.sendDownstream
(ChannelEvent e) void
DefaultChannelPipeline.sendDownstream
(ChannelEvent e) (package private) void
DefaultChannelPipeline.sendDownstream
(DefaultChannelPipeline.DefaultChannelHandlerContext ctx, ChannelEvent e) void
ChannelHandlerContext.sendUpstream
(ChannelEvent e) Sends the specifiedChannelEvent
to theChannelUpstreamHandler
which is placed in the closest upstream from the handler associated with this context.void
ChannelPipeline.sendUpstream
(ChannelEvent e) Sends the specifiedChannelEvent
to the firstChannelUpstreamHandler
in this pipeline.void
DefaultChannelPipeline.DefaultChannelHandlerContext.sendUpstream
(ChannelEvent e) void
DefaultChannelPipeline.sendUpstream
(ChannelEvent e) (package private) void
DefaultChannelPipeline.sendUpstream
(DefaultChannelPipeline.DefaultChannelHandlerContext ctx, ChannelEvent e) -
Uses of ChannelEvent in org.jboss.netty.channel.local
Methods in org.jboss.netty.channel.local with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
LocalClientChannelSink.eventSunk
(ChannelPipeline pipeline, ChannelEvent e) void
LocalServerChannelSink.eventSunk
(ChannelPipeline pipeline, ChannelEvent e) private static void
LocalServerChannelSink.handleAcceptedChannel
(ChannelEvent e) private static void
LocalServerChannelSink.handleServerChannel
(ChannelEvent e) -
Uses of ChannelEvent in org.jboss.netty.channel.socket.http
Methods in org.jboss.netty.channel.socket.http with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
HttpTunnelingClientSocketPipelineSink.eventSunk
(ChannelPipeline pipeline, ChannelEvent e) -
Uses of ChannelEvent in org.jboss.netty.channel.socket.nio
Methods in org.jboss.netty.channel.socket.nio with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
NioClientSocketPipelineSink.eventSunk
(ChannelPipeline pipeline, ChannelEvent e) void
NioDatagramPipelineSink.eventSunk
(ChannelPipeline pipeline, ChannelEvent e) Handle downstream event.void
NioServerSocketPipelineSink.eventSunk
(ChannelPipeline pipeline, ChannelEvent e) private static void
NioServerSocketPipelineSink.handleAcceptedSocket
(ChannelEvent e) private static void
NioServerSocketPipelineSink.handleServerSocket
(ChannelEvent e) protected boolean
AbstractNioChannelSink.isFireExceptionCaughtLater
(ChannelEvent event, Throwable actualCause) -
Uses of ChannelEvent in org.jboss.netty.channel.socket.oio
Methods in org.jboss.netty.channel.socket.oio with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
OioClientSocketPipelineSink.eventSunk
(ChannelPipeline pipeline, ChannelEvent e) void
OioDatagramPipelineSink.eventSunk
(ChannelPipeline pipeline, ChannelEvent e) void
OioServerSocketPipelineSink.eventSunk
(ChannelPipeline pipeline, ChannelEvent e) private static void
OioServerSocketPipelineSink.handleAcceptedSocket
(ChannelEvent e) private void
OioServerSocketPipelineSink.handleServerSocket
(ChannelEvent e) protected boolean
AbstractOioChannelSink.isFireExceptionCaughtLater
(ChannelEvent event, Throwable actualCause) -
Uses of ChannelEvent in org.jboss.netty.example.discard
Methods in org.jboss.netty.example.discard with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
DiscardClientHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) void
DiscardServerHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) -
Uses of ChannelEvent in org.jboss.netty.example.factorial
Methods in org.jboss.netty.example.factorial with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
FactorialClientHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) void
FactorialServerHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) -
Uses of ChannelEvent in org.jboss.netty.example.localtime
Methods in org.jboss.netty.example.localtime with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
LocalTimeClientHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) void
LocalTimeServerHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) -
Uses of ChannelEvent in org.jboss.netty.example.objectecho
Methods in org.jboss.netty.example.objectecho with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
ObjectEchoClientHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) void
ObjectEchoServerHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) -
Uses of ChannelEvent in org.jboss.netty.example.securechat
Methods in org.jboss.netty.example.securechat with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
SecureChatClientHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) void
SecureChatServerHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) -
Uses of ChannelEvent in org.jboss.netty.example.telnet
Methods in org.jboss.netty.example.telnet with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
TelnetClientHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) void
TelnetServerHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) -
Uses of ChannelEvent in org.jboss.netty.handler.codec.compression
Methods in org.jboss.netty.handler.codec.compression with parameters of type ChannelEventModifier and TypeMethodDescriptionprivate ChannelFuture
JdkZlibEncoder.finishEncode
(ChannelHandlerContext ctx, ChannelEvent evt) private ChannelFuture
ZlibEncoder.finishEncode
(ChannelHandlerContext ctx, ChannelEvent evt) void
JdkZlibEncoder.handleDownstream
(ChannelHandlerContext ctx, ChannelEvent evt) void
ZlibEncoder.handleDownstream
(ChannelHandlerContext ctx, ChannelEvent evt) -
Uses of ChannelEvent in org.jboss.netty.handler.codec.embedder
Methods in org.jboss.netty.handler.codec.embedder with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
AbstractCodecEmbedder.EmbeddedChannelSink.eventSunk
(ChannelPipeline pipeline, ChannelEvent e) void
AbstractCodecEmbedder.EmbeddedChannelSink.exceptionCaught
(ChannelPipeline pipeline, ChannelEvent e, ChannelPipelineException cause) private void
AbstractCodecEmbedder.EmbeddedChannelSink.handleEvent
(ChannelEvent e) void
AbstractCodecEmbedder.EmbeddedChannelSink.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) protected void
AbstractCodecEmbedder.EmbeddedChannelPipeline.notifyHandlerException
(ChannelEvent e, Throwable t) -
Uses of ChannelEvent in org.jboss.netty.handler.codec.http
Methods in org.jboss.netty.handler.codec.http with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
HttpClientCodec.handleDownstream
(ChannelHandlerContext ctx, ChannelEvent e) void
HttpServerCodec.handleDownstream
(ChannelHandlerContext ctx, ChannelEvent e) void
HttpClientCodec.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) void
HttpServerCodec.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) -
Uses of ChannelEvent in org.jboss.netty.handler.codec.oneone
Methods in org.jboss.netty.handler.codec.oneone with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
OneToOneEncoder.handleDownstream
(ChannelHandlerContext ctx, ChannelEvent evt) void
OneToOneDecoder.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent evt) -
Uses of ChannelEvent in org.jboss.netty.handler.codec.spdy
Methods in org.jboss.netty.handler.codec.spdy with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
SpdyFrameCodec.handleDownstream
(ChannelHandlerContext ctx, ChannelEvent evt) void
SpdyHttpCodec.handleDownstream
(ChannelHandlerContext ctx, ChannelEvent e) void
SpdyHttpEncoder.handleDownstream
(ChannelHandlerContext ctx, ChannelEvent evt) void
SpdySessionHandler.handleDownstream
(ChannelHandlerContext ctx, ChannelEvent evt) void
SpdyHttpCodec.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) void
SpdyOrHttpChooser.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) -
Uses of ChannelEvent in org.jboss.netty.handler.execution
Fields in org.jboss.netty.handler.execution declared as ChannelEventMethods in org.jboss.netty.handler.execution that return ChannelEventModifier and TypeMethodDescriptionChannelEventRunnable.getEvent()
Returns theChannelEvent
which will be sent upstream.Methods in org.jboss.netty.handler.execution with parameters of type ChannelEventModifier and TypeMethodDescriptionprotected Executor
OrderedDownstreamThreadPoolExecutor.getChildExecutor
(ChannelEvent e) protected Executor
OrderedMemoryAwareThreadPoolExecutor.getChildExecutor
(ChannelEvent e) protected Object
OrderedMemoryAwareThreadPoolExecutor.getChildExecutorKey
(ChannelEvent e) protected Object
FairOrderedMemoryAwareThreadPoolExecutor.getKey
(ChannelEvent e) void
ExecutionHandler.handleDownstream
(ChannelHandlerContext ctx, ChannelEvent e) protected boolean
ExecutionHandler.handleReadSuspend
(ChannelHandlerContext ctx, ChannelEvent e) Handle suspended readsvoid
ExecutionHandler.handleUpstream
(ChannelHandlerContext context, ChannelEvent e) Constructors in org.jboss.netty.handler.execution with parameters of type ChannelEventModifierConstructorDescriptionChannelDownstreamEventRunnable
(ChannelHandlerContext ctx, ChannelEvent e, Executor executor) protected
ChannelEventRunnable
(ChannelHandlerContext ctx, ChannelEvent e, Executor executor) Creates aRunnable
which sends the specifiedChannelEvent
upstream via the specifiedChannelHandlerContext
.ChannelUpstreamEventRunnable
(ChannelHandlerContext ctx, ChannelEvent e, Executor executor) Creates aRunnable
which sends the specifiedChannelEvent
upstream via the specifiedChannelHandlerContext
. -
Uses of ChannelEvent in org.jboss.netty.handler.ipfilter
Methods in org.jboss.netty.handler.ipfilter with parameters of type ChannelEventModifier and TypeMethodDescriptionprotected abstract boolean
IpFilteringHandlerImpl.accept
(ChannelHandlerContext ctx, ChannelEvent e, InetSocketAddress inetSocketAddress) Called when the channel is connected.protected boolean
IpFilterRuleHandler.accept
(ChannelHandlerContext ctx, ChannelEvent e, InetSocketAddress inetSocketAddress) protected boolean
OneIpFilterHandler.accept
(ChannelHandlerContext ctx, ChannelEvent e, InetSocketAddress inetSocketAddress) IpFilterListener.allowed
(ChannelHandlerContext ctx, ChannelEvent e, InetSocketAddress inetSocketAddress) Called when the channel has the CONNECTED status and the channel was allowed by a previous call to accept().protected boolean
IpFilteringHandlerImpl.continues
(ChannelHandlerContext ctx, ChannelEvent e) Called in handleUpstream, if this channel was previously blocked, to check if whatever the event, it should be passed to the next entry in the pipeline.
If one wants to not block events, just overridden this method by returning always true.
Note that OPENED and BOUND events are still passed to the next entry in the pipeline since those events come out before the CONNECTED event and so the possibility to filter the connection.boolean
IpFilterListener.continues
(ChannelHandlerContext ctx, ChannelEvent e) Called in handleUpstream, if this channel was previously blocked, to check if whatever the event, it should be passed to the next entry in the pipeline.
If one wants to not block events, just overridden this method by returning always true.
Note that OPENED and BOUND events are still passed to the next entry in the pipeline since those events come out before the CONNECTED event and so the possibility to filter the connection.protected ChannelFuture
IpFilteringHandlerImpl.handleAllowedChannel
(ChannelHandlerContext ctx, ChannelEvent e, InetSocketAddress inetSocketAddress) protected ChannelFuture
IpFilteringHandlerImpl.handleRefusedChannel
(ChannelHandlerContext ctx, ChannelEvent e, InetSocketAddress inetSocketAddress) Called when the channel has the CONNECTED status and the channel was refused by a previous call to accept().void
IpFilteringHandlerImpl.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) void
OneIpFilterHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) IpFilterListener.refused
(ChannelHandlerContext ctx, ChannelEvent e, InetSocketAddress inetSocketAddress) Called when the channel has the CONNECTED status and the channel was refused by a previous call to accept(). -
Uses of ChannelEvent in org.jboss.netty.handler.logging
Methods in org.jboss.netty.handler.logging with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
LoggingHandler.handleDownstream
(ChannelHandlerContext ctx, ChannelEvent e) void
LoggingHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) void
LoggingHandler.log
(ChannelEvent e) Logs the specified event to theInternalLogger
returned byLoggingHandler.getLogger()
. -
Uses of ChannelEvent in org.jboss.netty.handler.queue
Fields in org.jboss.netty.handler.queue with type parameters of type ChannelEventModifier and TypeFieldDescriptionprivate final BlockingQueue
<ChannelEvent> BlockingReadHandler.queue
Methods in org.jboss.netty.handler.queue that return ChannelEventModifier and TypeMethodDescriptionBlockingReadHandler.readEvent()
Waits until a newChannelEvent
is received or the associatedChannel
is closed.Waits until a newChannelEvent
is received or the associatedChannel
is closed.Methods in org.jboss.netty.handler.queue that return types with arguments of type ChannelEventModifier and TypeMethodDescriptionprotected BlockingQueue
<ChannelEvent> BlockingReadHandler.getQueue()
Returns the queue which stores the received messages.Constructor parameters in org.jboss.netty.handler.queue with type arguments of type ChannelEvent -
Uses of ChannelEvent in org.jboss.netty.handler.ssl
Methods in org.jboss.netty.handler.ssl with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
SslHandler.handleDownstream
(ChannelHandlerContext context, ChannelEvent evt) -
Uses of ChannelEvent in org.jboss.netty.handler.stream
Methods in org.jboss.netty.handler.stream with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
ChunkedWriteHandler.handleDownstream
(ChannelHandlerContext ctx, ChannelEvent e) void
ChunkedWriteHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) -
Uses of ChannelEvent in org.jboss.netty.handler.timeout
Subinterfaces of ChannelEvent in org.jboss.netty.handler.timeoutModifier and TypeInterfaceDescriptioninterface
AChannelEvent
that is triggered when aChannel
has been idle for a while.Classes in org.jboss.netty.handler.timeout that implement ChannelEventMethods in org.jboss.netty.handler.timeout with parameters of type ChannelEventModifier and TypeMethodDescriptionvoid
IdleStateAwareChannelHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e) void
IdleStateAwareChannelUpstreamHandler.handleUpstream
(ChannelHandlerContext ctx, ChannelEvent e)