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-sideSocketChanneland 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 decompressesChannelBuffers 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 aChannelEventfor 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 onSSLEngineorg.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 interfaceChannelStateEventAChannelEventwhich represents the change of theChannelstate.interfaceChildChannelStateEventAChannelEventwhich represents the notification of the state of a childChannel.interfaceExceptionEventAChannelEventwhich represents the notification of an exception raised by aChannelHandleror an I/O thread.interfaceMessageEventAChannelEventwhich represents the transmission or reception of a message.interfaceWriteCompletionEventAChannelEventwhich 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 classDefaultChildChannelStateEventThe defaultChildChannelStateEventimplementation.classDefaultExceptionEventThe defaultExceptionEventimplementation.classDefaultWriteCompletionEventThe defaultWriteCompletionEventimplementation.classDownstreamChannelStateEventThe default downstreamChannelStateEventimplementation.classDownstreamMessageEventThe default downstreamMessageEventimplementation.classUpstreamChannelStateEventThe default upstreamChannelStateEventimplementation.classUpstreamMessageEventThe default upstreamMessageEventimplementation.Methods in org.jboss.netty.channel with parameters of type ChannelEvent Modifier and Type Method Description voidChannelSink. 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, java.lang.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, java.lang.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 ChannelEvent Modifier and Type Method Description voidLocalClientChannelSink. 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 ChannelEvent Modifier and Type Method Description voidHttpTunnelingClientSocketPipelineSink. 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 voidNioClientSocketPipelineSink. 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, 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 voidOioClientSocketPipelineSink. 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, 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 voidDiscardClientHandler. 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 ChannelEvent Modifier and Type Method Description voidFactorialClientHandler. 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 ChannelEvent Modifier and Type Method Description voidLocalTimeClientHandler. 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 ChannelEvent Modifier and Type Method Description voidObjectEchoClientHandler. 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 ChannelEvent Modifier and Type Method Description voidSecureChatClientHandler. 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 ChannelEvent Modifier and Type Method Description voidTelnetClientHandler. 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 ChannelEvent Modifier and Type Method Description private 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 ChannelEvent Modifier and Type Method Description voidAbstractCodecEmbedder.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, 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 voidHttpClientCodec. 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 ChannelEvent Modifier and Type Method Description voidOneToOneEncoder. 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 ChannelEvent Modifier and Type Method Description voidSpdyFrameCodec. 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 ChannelEvent Modifier and Type Field Description protected ChannelEventChannelEventRunnable. eMethods in org.jboss.netty.handler.execution that return ChannelEvent Modifier and Type Method Description ChannelEventChannelEventRunnable. getEvent()Returns theChannelEventwhich 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.ExecutorOrderedDownstreamThreadPoolExecutor. getChildExecutor(ChannelEvent e)protected java.util.concurrent.ExecutorOrderedMemoryAwareThreadPoolExecutor. getChildExecutor(ChannelEvent e)protected java.lang.ObjectOrderedMemoryAwareThreadPoolExecutor. getChildExecutorKey(ChannelEvent e)protected java.lang.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 ChannelEvent Constructor Description ChannelDownstreamEventRunnable(ChannelHandlerContext ctx, ChannelEvent e, java.util.concurrent.Executor executor)ChannelEventRunnable(ChannelHandlerContext ctx, ChannelEvent e, java.util.concurrent.Executor executor)Creates aRunnablewhich sends the specifiedChannelEventupstream via the specifiedChannelHandlerContext.ChannelUpstreamEventRunnable(ChannelHandlerContext ctx, ChannelEvent e, java.util.concurrent.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 ChannelEvent Modifier and Type Method Description protected abstract booleanIpFilteringHandlerImpl. accept(ChannelHandlerContext ctx, ChannelEvent e, java.net.InetSocketAddress inetSocketAddress)Called when the channel is connected.protected booleanIpFilterRuleHandler. accept(ChannelHandlerContext ctx, ChannelEvent e, java.net.InetSocketAddress inetSocketAddress)protected booleanOneIpFilterHandler. accept(ChannelHandlerContext ctx, ChannelEvent e, java.net.InetSocketAddress inetSocketAddress)ChannelFutureIpFilterListener. 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 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, java.net.InetSocketAddress inetSocketAddress)protected ChannelFutureIpFilteringHandlerImpl. 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().voidIpFilteringHandlerImpl. handleUpstream(ChannelHandlerContext ctx, ChannelEvent e)voidOneIpFilterHandler. handleUpstream(ChannelHandlerContext ctx, ChannelEvent e)ChannelFutureIpFilterListener. 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 voidLoggingHandler. 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 ChannelEvent Modifier and Type Field Description private java.util.concurrent.BlockingQueue<ChannelEvent>BlockingReadHandler. queueMethods in org.jboss.netty.handler.queue that return ChannelEvent Modifier and Type Method Description ChannelEventBlockingReadHandler. readEvent()Waits until a newChannelEventis received or the associatedChannelis closed.ChannelEventBlockingReadHandler. readEvent(long timeout, java.util.concurrent.TimeUnit unit)Waits until a newChannelEventis received or the associatedChannelis 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 voidSslHandler. 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 voidChunkedWriteHandler. 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.timeout Modifier and Type Interface Description interfaceIdleStateEventAChannelEventthat is triggered when aChannelhas been idle for a while.Classes in org.jboss.netty.handler.timeout that implement ChannelEvent Modifier and Type Class Description classDefaultIdleStateEventThe defaultIdleStateEventimplementation.Methods in org.jboss.netty.handler.timeout with parameters of type ChannelEvent Modifier and Type Method Description voidIdleStateAwareChannelHandler. handleUpstream(ChannelHandlerContext ctx, ChannelEvent e)voidIdleStateAwareChannelUpstreamHandler. handleUpstream(ChannelHandlerContext ctx, ChannelEvent e)
-