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
ChannelBuffers
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 TypeInterfaceDescriptioninterfaceAChannelEventwhich represents the change of theChannelstate.interfaceAChannelEventwhich represents the notification of the state of a childChannel.interfaceAChannelEventwhich represents the notification of an exception raised by aChannelHandleror an I/O thread.interfaceAChannelEventwhich represents the transmission or reception of a message.interfaceAChannelEventwhich represents the notification of the completion of a write request on aChannel.Classes in org.jboss.netty.channel that implement ChannelEventModifier and TypeClassDescriptionclassThe defaultChildChannelStateEventimplementation.classThe defaultExceptionEventimplementation.classThe defaultWriteCompletionEventimplementation.classThe default downstreamChannelStateEventimplementation.classThe default downstreamMessageEventimplementation.classThe default upstreamChannelStateEventimplementation.classThe default upstreamMessageEventimplementation.Methods in org.jboss.netty.channel with parameters of type ChannelEventModifier and TypeMethodDescriptionvoidChannelSink.eventSunk(ChannelPipeline pipeline, ChannelEvent e) Invoked byChannelPipelinewhen a downstreamChannelEventhas reached its terminal (the head of the pipeline).voidDefaultChannelPipeline.DiscardingChannelSink.eventSunk(ChannelPipeline pipeline, ChannelEvent e) voidAbstractChannelSink.exceptionCaught(ChannelPipeline pipeline, ChannelEvent event, ChannelPipelineException cause) Sends anExceptionEventupstream with the specifiedcause.voidChannelSink.exceptionCaught(ChannelPipeline pipeline, ChannelEvent e, ChannelPipelineException cause) Invoked byChannelPipelinewhen an exception was raised while one of itsChannelHandlers process aChannelEvent.voidDefaultChannelPipeline.DiscardingChannelSink.exceptionCaught(ChannelPipeline pipeline, ChannelEvent e, ChannelPipelineException cause) voidChannelDownstreamHandler.handleDownstream(ChannelHandlerContext ctx, ChannelEvent e) Handles the specified downstream event.voidSimpleChannelDownstreamHandler.handleDownstream(ChannelHandlerContext ctx, ChannelEvent e) Handles the specified downstream event.voidSimpleChannelHandler.handleDownstream(ChannelHandlerContext ctx, ChannelEvent e) Handles the specified downstream event.voidChannelUpstreamHandler.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) Handles the specified upstream event.voidSimpleChannelHandler.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) Handles the specified upstream event.voidSimpleChannelUpstreamHandler.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) Handles the specified upstream event.protected booleanAbstractChannelSink.isFireExceptionCaughtLater(ChannelEvent event, Throwable actualCause) Returnstrueif and only if the specifiedactualCause, which was raised while handling the specifiedevent, must trigger anexceptionCaught()event in an I/O thread.protected voidDefaultChannelPipeline.notifyHandlerException(ChannelEvent e, Throwable t) voidChannelHandlerContext.sendDownstream(ChannelEvent e) Sends the specifiedChannelEventto theChannelDownstreamHandlerwhich is placed in the closest downstream from the handler associated with this context.voidChannelPipeline.sendDownstream(ChannelEvent e) Sends the specifiedChannelEventto the lastChannelDownstreamHandlerin this pipeline.voidDefaultChannelPipeline.DefaultChannelHandlerContext.sendDownstream(ChannelEvent e) voidDefaultChannelPipeline.sendDownstream(ChannelEvent e) (package private) voidDefaultChannelPipeline.sendDownstream(DefaultChannelPipeline.DefaultChannelHandlerContext ctx, ChannelEvent e) voidChannelHandlerContext.sendUpstream(ChannelEvent e) Sends the specifiedChannelEventto theChannelUpstreamHandlerwhich is placed in the closest upstream from the handler associated with this context.voidChannelPipeline.sendUpstream(ChannelEvent e) Sends the specifiedChannelEventto the firstChannelUpstreamHandlerin this pipeline.voidDefaultChannelPipeline.DefaultChannelHandlerContext.sendUpstream(ChannelEvent e) voidDefaultChannelPipeline.sendUpstream(ChannelEvent e) (package private) voidDefaultChannelPipeline.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 TypeMethodDescriptionvoidLocalClientChannelSink.eventSunk(ChannelPipeline pipeline, ChannelEvent e) voidLocalServerChannelSink.eventSunk(ChannelPipeline pipeline, ChannelEvent e) private static voidLocalServerChannelSink.handleAcceptedChannel(ChannelEvent e) private static voidLocalServerChannelSink.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 TypeMethodDescriptionvoidHttpTunnelingClientSocketPipelineSink.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 TypeMethodDescriptionvoidNioClientSocketPipelineSink.eventSunk(ChannelPipeline pipeline, ChannelEvent e) voidNioDatagramPipelineSink.eventSunk(ChannelPipeline pipeline, ChannelEvent e) Handle downstream event.voidNioServerSocketPipelineSink.eventSunk(ChannelPipeline pipeline, ChannelEvent e) private static voidNioServerSocketPipelineSink.handleAcceptedSocket(ChannelEvent e) private static voidNioServerSocketPipelineSink.handleServerSocket(ChannelEvent e) protected booleanAbstractNioChannelSink.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 TypeMethodDescriptionvoidOioClientSocketPipelineSink.eventSunk(ChannelPipeline pipeline, ChannelEvent e) voidOioDatagramPipelineSink.eventSunk(ChannelPipeline pipeline, ChannelEvent e) voidOioServerSocketPipelineSink.eventSunk(ChannelPipeline pipeline, ChannelEvent e) private static voidOioServerSocketPipelineSink.handleAcceptedSocket(ChannelEvent e) private voidOioServerSocketPipelineSink.handleServerSocket(ChannelEvent e) protected booleanAbstractOioChannelSink.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 TypeMethodDescriptionvoidDiscardClientHandler.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) voidDiscardServerHandler.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 TypeMethodDescriptionvoidFactorialClientHandler.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) voidFactorialServerHandler.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 TypeMethodDescriptionvoidLocalTimeClientHandler.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) voidLocalTimeServerHandler.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 TypeMethodDescriptionvoidObjectEchoClientHandler.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) voidObjectEchoServerHandler.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 TypeMethodDescriptionvoidSecureChatClientHandler.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) voidSecureChatServerHandler.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 TypeMethodDescriptionvoidTelnetClientHandler.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) voidTelnetServerHandler.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 ChannelFutureJdkZlibEncoder.finishEncode(ChannelHandlerContext ctx, ChannelEvent evt) private ChannelFutureZlibEncoder.finishEncode(ChannelHandlerContext ctx, ChannelEvent evt) voidJdkZlibEncoder.handleDownstream(ChannelHandlerContext ctx, ChannelEvent evt) voidZlibEncoder.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 TypeMethodDescriptionvoidAbstractCodecEmbedder.EmbeddedChannelSink.eventSunk(ChannelPipeline pipeline, ChannelEvent e) voidAbstractCodecEmbedder.EmbeddedChannelSink.exceptionCaught(ChannelPipeline pipeline, ChannelEvent e, ChannelPipelineException cause) private voidAbstractCodecEmbedder.EmbeddedChannelSink.handleEvent(ChannelEvent e) voidAbstractCodecEmbedder.EmbeddedChannelSink.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) protected voidAbstractCodecEmbedder.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 TypeMethodDescriptionvoidHttpClientCodec.handleDownstream(ChannelHandlerContext ctx, ChannelEvent e) voidHttpServerCodec.handleDownstream(ChannelHandlerContext ctx, ChannelEvent e) voidHttpClientCodec.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) voidHttpServerCodec.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 TypeMethodDescriptionvoidOneToOneEncoder.handleDownstream(ChannelHandlerContext ctx, ChannelEvent evt) voidOneToOneDecoder.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 TypeMethodDescriptionvoidSpdyFrameCodec.handleDownstream(ChannelHandlerContext ctx, ChannelEvent evt) voidSpdyHttpCodec.handleDownstream(ChannelHandlerContext ctx, ChannelEvent e) voidSpdyHttpEncoder.handleDownstream(ChannelHandlerContext ctx, ChannelEvent evt) voidSpdySessionHandler.handleDownstream(ChannelHandlerContext ctx, ChannelEvent evt) voidSpdyHttpCodec.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) voidSpdyOrHttpChooser.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 theChannelEventwhich will be sent upstream.Methods in org.jboss.netty.handler.execution with parameters of type ChannelEventModifier and TypeMethodDescriptionprotected ExecutorOrderedDownstreamThreadPoolExecutor.getChildExecutor(ChannelEvent e) protected ExecutorOrderedMemoryAwareThreadPoolExecutor.getChildExecutor(ChannelEvent e) protected ObjectOrderedMemoryAwareThreadPoolExecutor.getChildExecutorKey(ChannelEvent e) protected ObjectFairOrderedMemoryAwareThreadPoolExecutor.getKey(ChannelEvent e) voidExecutionHandler.handleDownstream(ChannelHandlerContext ctx, ChannelEvent e) protected booleanExecutionHandler.handleReadSuspend(ChannelHandlerContext ctx, ChannelEvent e) Handle suspended readsvoidExecutionHandler.handleUpstream(ChannelHandlerContext context, ChannelEvent e) Constructors in org.jboss.netty.handler.execution with parameters of type ChannelEventModifierConstructorDescriptionChannelDownstreamEventRunnable(ChannelHandlerContext ctx, ChannelEvent e, Executor executor) protectedChannelEventRunnable(ChannelHandlerContext ctx, ChannelEvent e, Executor executor) Creates aRunnablewhich sends the specifiedChannelEventupstream via the specifiedChannelHandlerContext.ChannelUpstreamEventRunnable(ChannelHandlerContext ctx, ChannelEvent e, Executor executor) Creates aRunnablewhich sends the specifiedChannelEventupstream 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 booleanIpFilteringHandlerImpl.accept(ChannelHandlerContext ctx, ChannelEvent e, InetSocketAddress inetSocketAddress) Called when the channel is connected.protected booleanIpFilterRuleHandler.accept(ChannelHandlerContext ctx, ChannelEvent e, InetSocketAddress inetSocketAddress) protected booleanOneIpFilterHandler.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 booleanIpFilteringHandlerImpl.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.booleanIpFilterListener.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 ChannelFutureIpFilteringHandlerImpl.handleAllowedChannel(ChannelHandlerContext ctx, ChannelEvent e, InetSocketAddress inetSocketAddress) protected ChannelFutureIpFilteringHandlerImpl.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().voidIpFilteringHandlerImpl.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) voidOneIpFilterHandler.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 TypeMethodDescriptionvoidLoggingHandler.handleDownstream(ChannelHandlerContext ctx, ChannelEvent e) voidLoggingHandler.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) voidLoggingHandler.log(ChannelEvent e) Logs the specified event to theInternalLoggerreturned 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.queueMethods in org.jboss.netty.handler.queue that return ChannelEventModifier and TypeMethodDescriptionBlockingReadHandler.readEvent()Waits until a newChannelEventis received or the associatedChannelis closed.Waits until a newChannelEventis received or the associatedChannelis 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 TypeMethodDescriptionvoidSslHandler.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 TypeMethodDescriptionvoidChunkedWriteHandler.handleDownstream(ChannelHandlerContext ctx, ChannelEvent e) voidChunkedWriteHandler.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) -
Uses of ChannelEvent in org.jboss.netty.handler.timeout
Subinterfaces of ChannelEvent in org.jboss.netty.handler.timeoutModifier and TypeInterfaceDescriptioninterfaceAChannelEventthat is triggered when aChannelhas 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 TypeMethodDescriptionvoidIdleStateAwareChannelHandler.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) voidIdleStateAwareChannelUpstreamHandler.handleUpstream(ChannelHandlerContext ctx, ChannelEvent e)