Uses of Interface
org.jboss.netty.channel.ChannelEvent
-
Packages that use ChannelEvent Package Description 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.local A virtual transport that enables the communication between the two parties in the same virtual machine.org.jboss.netty.channel.socket.http An HTTP-based client-sideSocketChannel
and its corresponding server-side Servlet implementation that make your existing server application work in a firewalled network.org.jboss.netty.channel.socket.nio NIO-based socket channel API implementation - recommended for a large number of connections (>= 1000).org.jboss.netty.channel.socket.oio Old blocking I/O based socket channel API implementation - recommended for a small number of connections (< 1000).org.jboss.netty.example.discard org.jboss.netty.example.factorial org.jboss.netty.example.localtime org.jboss.netty.example.objectecho org.jboss.netty.example.securechat org.jboss.netty.example.telnet org.jboss.netty.handler.codec.compression Encoder and decoder which compresses and decompressesChannelBuffer
s in a compression format such as zlib and gzip.org.jboss.netty.handler.codec.embedder 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.org.jboss.netty.handler.codec.http Encoder, decoder and their related message types for HTTP.org.jboss.netty.handler.codec.oneone Simplistic abstract classes which help implement encoder and decoder that transform an object into another object and vice versa.org.jboss.netty.handler.codec.spdy Encoder, decoder, session handler and their related message types for the SPDY protocol.org.jboss.netty.handler.execution Executor
-based implementation of various thread models that separate business logic from I/O threadsorg.jboss.netty.handler.ipfilter Implementation of a Ip based Filter handlers.
org.jboss.netty.handler.logging Logs aChannelEvent
for debugging purpose using anInternalLogger
.org.jboss.netty.handler.queue The special-purpose handlers that store an event into an internal queue instead of propagating the event immediately.org.jboss.netty.handler.ssl SSL · TLS implementation based onSSLEngine
org.jboss.netty.handler.stream Writes very large data stream asynchronously neither spending a lot of memory nor gettingOutOfMemoryError
.org.jboss.netty.handler.timeout Adds support for read and write timeout and idle connection notification using aTimer
. -
-
Uses of ChannelEvent in org.jboss.netty.channel
Subinterfaces of ChannelEvent in org.jboss.netty.channel Modifier and Type Interface Description interface
ChannelStateEvent
AChannelEvent
which represents the change of theChannel
state.interface
ChildChannelStateEvent
AChannelEvent
which represents the notification of the state of a childChannel
.interface
ExceptionEvent
AChannelEvent
which represents the notification of an exception raised by aChannelHandler
or an I/O thread.interface
MessageEvent
AChannelEvent
which represents the transmission or reception of a message.interface
WriteCompletionEvent
AChannelEvent
which represents the notification of the completion of a write request on aChannel
.Classes in org.jboss.netty.channel that implement ChannelEvent Modifier and Type Class Description class
DefaultChildChannelStateEvent
The defaultChildChannelStateEvent
implementation.class
DefaultExceptionEvent
The defaultExceptionEvent
implementation.class
DefaultWriteCompletionEvent
The defaultWriteCompletionEvent
implementation.class
DownstreamChannelStateEvent
The default downstreamChannelStateEvent
implementation.class
DownstreamMessageEvent
The default downstreamMessageEvent
implementation.class
UpstreamChannelStateEvent
The default upstreamChannelStateEvent
implementation.class
UpstreamMessageEvent
The default upstreamMessageEvent
implementation.Methods in org.jboss.netty.channel with parameters of type ChannelEvent Modifier and Type Method Description void
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, java.lang.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, java.lang.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 ChannelEvent Modifier and Type Method Description void
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 ChannelEvent Modifier and Type Method Description void
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 ChannelEvent Modifier and Type Method Description void
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, java.lang.Throwable actualCause)
-
Uses of ChannelEvent in org.jboss.netty.channel.socket.oio
Methods in org.jboss.netty.channel.socket.oio with parameters of type ChannelEvent Modifier and Type Method Description void
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, java.lang.Throwable actualCause)
-
Uses of ChannelEvent in org.jboss.netty.example.discard
Methods in org.jboss.netty.example.discard with parameters of type ChannelEvent Modifier and Type Method Description void
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 ChannelEvent Modifier and Type Method Description void
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 ChannelEvent Modifier and Type Method Description void
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 ChannelEvent Modifier and Type Method Description void
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 ChannelEvent Modifier and Type Method Description void
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 ChannelEvent Modifier and Type Method Description void
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 ChannelEvent Modifier and Type Method Description private 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 ChannelEvent Modifier and Type Method Description void
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, java.lang.Throwable t)
-
Uses of ChannelEvent in org.jboss.netty.handler.codec.http
Methods in org.jboss.netty.handler.codec.http with parameters of type ChannelEvent Modifier and Type Method Description void
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 ChannelEvent Modifier and Type Method Description void
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 ChannelEvent Modifier and Type Method Description void
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 ChannelEvent Modifier and Type Field Description protected ChannelEvent
ChannelEventRunnable. e
Methods in org.jboss.netty.handler.execution that return ChannelEvent Modifier and Type Method Description ChannelEvent
ChannelEventRunnable. getEvent()
Returns theChannelEvent
which will be sent upstream.Methods in org.jboss.netty.handler.execution with parameters of type ChannelEvent Modifier and Type Method Description protected java.util.concurrent.Executor
OrderedDownstreamThreadPoolExecutor. getChildExecutor(ChannelEvent e)
protected java.util.concurrent.Executor
OrderedMemoryAwareThreadPoolExecutor. getChildExecutor(ChannelEvent e)
protected java.lang.Object
OrderedMemoryAwareThreadPoolExecutor. getChildExecutorKey(ChannelEvent e)
protected java.lang.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 ChannelEvent Constructor Description ChannelDownstreamEventRunnable(ChannelHandlerContext ctx, ChannelEvent e, java.util.concurrent.Executor executor)
ChannelEventRunnable(ChannelHandlerContext ctx, ChannelEvent e, java.util.concurrent.Executor executor)
Creates aRunnable
which sends the specifiedChannelEvent
upstream via the specifiedChannelHandlerContext
.ChannelUpstreamEventRunnable(ChannelHandlerContext ctx, ChannelEvent e, java.util.concurrent.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 ChannelEvent Modifier and Type Method Description protected abstract boolean
IpFilteringHandlerImpl. accept(ChannelHandlerContext ctx, ChannelEvent e, java.net.InetSocketAddress inetSocketAddress)
Called when the channel is connected.protected boolean
IpFilterRuleHandler. accept(ChannelHandlerContext ctx, ChannelEvent e, java.net.InetSocketAddress inetSocketAddress)
protected boolean
OneIpFilterHandler. accept(ChannelHandlerContext ctx, ChannelEvent e, java.net.InetSocketAddress inetSocketAddress)
ChannelFuture
IpFilterListener. allowed(ChannelHandlerContext ctx, ChannelEvent e, java.net.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, java.net.InetSocketAddress inetSocketAddress)
protected ChannelFuture
IpFilteringHandlerImpl. handleRefusedChannel(ChannelHandlerContext ctx, ChannelEvent e, java.net.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)
ChannelFuture
IpFilterListener. refused(ChannelHandlerContext ctx, ChannelEvent e, java.net.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 ChannelEvent Modifier and Type Method Description void
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 ChannelEvent Modifier and Type Field Description private java.util.concurrent.BlockingQueue<ChannelEvent>
BlockingReadHandler. queue
Methods in org.jboss.netty.handler.queue that return ChannelEvent Modifier and Type Method Description ChannelEvent
BlockingReadHandler. readEvent()
Waits until a newChannelEvent
is received or the associatedChannel
is closed.ChannelEvent
BlockingReadHandler. readEvent(long timeout, java.util.concurrent.TimeUnit unit)
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 ChannelEvent Modifier and Type Method Description protected java.util.concurrent.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 Constructor Description BlockingReadHandler(java.util.concurrent.BlockingQueue<ChannelEvent> queue)
Creates a new instance with the specifiedBlockingQueue
. -
Uses of ChannelEvent in org.jboss.netty.handler.ssl
Methods in org.jboss.netty.handler.ssl with parameters of type ChannelEvent Modifier and Type Method Description void
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 ChannelEvent Modifier and Type Method Description void
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.timeout Modifier and Type Interface Description interface
IdleStateEvent
AChannelEvent
that is triggered when aChannel
has been idle for a while.Classes in org.jboss.netty.handler.timeout that implement ChannelEvent Modifier and Type Class Description class
DefaultIdleStateEvent
The defaultIdleStateEvent
implementation.Methods in org.jboss.netty.handler.timeout with parameters of type ChannelEvent Modifier and Type Method Description void
IdleStateAwareChannelHandler. handleUpstream(ChannelHandlerContext ctx, ChannelEvent e)
void
IdleStateAwareChannelUpstreamHandler. handleUpstream(ChannelHandlerContext ctx, ChannelEvent e)
-