Uses of Interface
org.jboss.netty.channel.ChannelHandler
Packages that use ChannelHandler
Package
Description
IoC/DI friendly helper classes which enable an easy implementation of
typical client side and server side channel initialization.
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
An HTTP-based client-side
SocketChannel
and its corresponding server-side Servlet implementation that make your
existing server application work in a firewalled network.This package is intended for use with testing against the Python
AutoBahn test suite.
This is an example web service client.
This package contains an example web socket web server.
Encoder and decoder which transform a
Base64-encoded
String or ChannelBuffer
into a decoded ChannelBuffer and vice versa.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.
Extensible decoder and its common implementations which deal with the
packet fragmentation and reassembly issue found in a stream-based transport
such as TCP/IP.
Encoder, decoder and their related message types for HTTP.
Encoder, decoder, handshakers and their related message types for
Web Socket data frames.
Decoder and Encoder which uses JBoss Marshalling.
Simplistic abstract classes which help implement encoder and decoder that
transform an object into another object and vice versa.
Encoder and decoder which transform a
Google Protocol Buffers
Message into a ChannelBuffer
and vice versa.Specialized variation of
FrameDecoder
which enables implementation of a non-blocking decoder in the blocking I/O
paradigm.An RTSP
extension based on the HTTP codec.
Encoder, decoder and their compatibility stream implementations which
transform a
Serializable object into a byte buffer and
vice versa.Encoder, decoder and their related message types for Socks.
Encoder, decoder, session handler and their related message types for the SPDY protocol.
Encoder and decoder which transform a
String into a
ChannelBuffer and vice versa.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.Implementation of a Traffic Shaping Handler and Dynamic Statistics.
-
Uses of ChannelHandler in org.jboss.netty.bootstrap
Classes in org.jboss.netty.bootstrap that implement ChannelHandlerFields in org.jboss.netty.bootstrap declared as ChannelHandlerMethods in org.jboss.netty.bootstrap that return ChannelHandlerModifier and TypeMethodDescriptionServerBootstrap.getParentHandler()Returns an optionalChannelHandlerwhich intercepts an event of a newly bound server-side channel which accepts incoming connections.Methods in org.jboss.netty.bootstrap that return types with arguments of type ChannelHandlerModifier and TypeMethodDescriptionBootstrap.getPipelineAsMap()Dependency injection friendly convenience method forBootstrap.getPipeline()which returns the default pipeline of this bootstrap as an ordered map.Methods in org.jboss.netty.bootstrap with parameters of type ChannelHandlerModifier and TypeMethodDescriptionvoidServerBootstrap.setParentHandler(ChannelHandler parentHandler) Sets an optionalChannelHandlerwhich intercepts an event of a newly bound server-side channel which accepts incoming connections.Method parameters in org.jboss.netty.bootstrap with type arguments of type ChannelHandlerModifier and TypeMethodDescriptionvoidBootstrap.setPipelineAsMap(Map<String, ChannelHandler> pipelineMap) Dependency injection friendly convenience method forBootstrap.setPipeline(ChannelPipeline)which sets the default pipeline of this bootstrap from an ordered map. -
Uses of ChannelHandler in org.jboss.netty.channel
Subinterfaces of ChannelHandler in org.jboss.netty.channelModifier and TypeInterfaceDescriptioninterfaceHandles or intercepts a downstreamChannelEvent, and sends aChannelEventto the next handler in aChannelPipeline.interfaceHandles or intercepts an upstreamChannelEvent, and sends aChannelEventto the next handler in aChannelPipeline.interfaceAChannelHandlerthat is notified when it is added to or removed from aChannelPipeline.Classes in org.jboss.netty.channel that implement ChannelHandlerModifier and TypeClassDescriptionclassAChannelDownstreamHandlerwhich provides an individual handler method for each event type.classAChannelHandlerwhich provides an individual handler method for each event type.classAChannelUpstreamHandlerwhich provides an individual handler method for each event type.Fields in org.jboss.netty.channel declared as ChannelHandlerModifier and TypeFieldDescriptionprivate final ChannelHandlerDefaultChannelPipeline.DefaultChannelHandlerContext.handlerMethods in org.jboss.netty.channel with type parameters of type ChannelHandlerModifier and TypeMethodDescription<T extends ChannelHandler>
TReturns theChannelHandlerof the specified type in this pipeline.<T extends ChannelHandler>
T<T extends ChannelHandler>
TRemoves theChannelHandlerof the specified type from this pipeline<T extends ChannelHandler>
T<T extends ChannelHandler>
TChannelPipeline.replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler) Replaces theChannelHandlerof the specified type with a new handler in this pipeline.<T extends ChannelHandler>
TDefaultChannelPipeline.replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler) Methods in org.jboss.netty.channel that return ChannelHandlerModifier and TypeMethodDescriptionReturns theChannelHandlerwith the specified name in this pipeline.ChannelPipeline.getFirst()Returns the firstChannelHandlerin this pipeline.DefaultChannelPipeline.getFirst()ChannelHandlerContext.getHandler()Returns theChannelHandlerthat this context object is serving.DefaultChannelPipeline.DefaultChannelHandlerContext.getHandler()ChannelPipeline.getLast()Returns the lastChannelHandlerin this pipeline.DefaultChannelPipeline.getLast()Removes theChannelHandlerwith the specified name from this pipeline.ChannelPipeline.removeFirst()Removes the firstChannelHandlerin this pipeline.DefaultChannelPipeline.removeFirst()ChannelPipeline.removeLast()Removes the lastChannelHandlerin this pipeline.DefaultChannelPipeline.removeLast()ChannelPipeline.replace(String oldName, String newName, ChannelHandler newHandler) Replaces theChannelHandlerof the specified name with a new handler in this pipeline.DefaultChannelPipeline.replace(String oldName, String newName, ChannelHandler newHandler) private ChannelHandlerDefaultChannelPipeline.replace(DefaultChannelPipeline.DefaultChannelHandlerContext ctx, String newName, ChannelHandler newHandler) Methods in org.jboss.netty.channel that return types with arguments of type ChannelHandlerModifier and TypeMethodDescriptionChannelPipeline.toMap()Converts this pipeline into an orderedMapwhose keys are handler names and whose values are handlers.DefaultChannelPipeline.toMap()Methods in org.jboss.netty.channel with parameters of type ChannelHandlerModifier and TypeMethodDescriptionvoidChannelPipeline.addAfter(String baseName, String name, ChannelHandler handler) Inserts aChannelHandlerafter an existing handler of this pipeline.voidDefaultChannelPipeline.addAfter(String baseName, String name, ChannelHandler handler) voidChannelPipeline.addBefore(String baseName, String name, ChannelHandler handler) Inserts aChannelHandlerbefore an existing handler of this pipeline.voidDefaultChannelPipeline.addBefore(String baseName, String name, ChannelHandler handler) voidChannelPipeline.addFirst(String name, ChannelHandler handler) Inserts aChannelHandlerat the first position of this pipeline.voidDefaultChannelPipeline.addFirst(String name, ChannelHandler handler) voidChannelPipeline.addLast(String name, ChannelHandler handler) Appends aChannelHandlerat the last position of this pipeline.voidDefaultChannelPipeline.addLast(String name, ChannelHandler handler) ChannelPipeline.getContext(ChannelHandler handler) Returns the context object of the specifiedChannelHandlerin this pipeline.DefaultChannelPipeline.getContext(ChannelHandler handler) DefaultChannelPipeline.getContextOrDie(ChannelHandler handler) private voidDefaultChannelPipeline.init(String name, ChannelHandler handler) static ChannelPipelineChannels.pipeline(ChannelHandler... handlers) Creates a newChannelPipelinewhich contains the specifiedChannelHandlers.voidChannelPipeline.remove(ChannelHandler handler) Removes the specifiedChannelHandlerfrom this pipeline.voidDefaultChannelPipeline.remove(ChannelHandler handler) <T extends ChannelHandler>
TChannelPipeline.replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler) Replaces theChannelHandlerof the specified type with a new handler in this pipeline.ChannelPipeline.replace(String oldName, String newName, ChannelHandler newHandler) Replaces theChannelHandlerof the specified name with a new handler in this pipeline.voidChannelPipeline.replace(ChannelHandler oldHandler, String newName, ChannelHandler newHandler) Replaces the specifiedChannelHandlerwith a new handler in this pipeline.<T extends ChannelHandler>
TDefaultChannelPipeline.replace(Class<T> oldHandlerType, String newName, ChannelHandler newHandler) DefaultChannelPipeline.replace(String oldName, String newName, ChannelHandler newHandler) voidDefaultChannelPipeline.replace(ChannelHandler oldHandler, String newName, ChannelHandler newHandler) private ChannelHandlerDefaultChannelPipeline.replace(DefaultChannelPipeline.DefaultChannelHandlerContext ctx, String newName, ChannelHandler newHandler) Method parameters in org.jboss.netty.channel with type arguments of type ChannelHandlerModifier and TypeMethodDescriptionChannelPipeline.getContext(Class<? extends ChannelHandler> handlerType) Returns the context object of theChannelHandlerof the specified type in this pipeline.DefaultChannelPipeline.getContext(Class<? extends ChannelHandler> handlerType) DefaultChannelPipeline.getContextOrDie(Class<? extends ChannelHandler> handlerType) Constructors in org.jboss.netty.channel with parameters of type ChannelHandlerModifierConstructorDescription(package private)DefaultChannelHandlerContext(DefaultChannelPipeline.DefaultChannelHandlerContext prev, DefaultChannelPipeline.DefaultChannelHandlerContext next, String name, ChannelHandler handler) -
Uses of ChannelHandler in org.jboss.netty.channel.socket.http
Classes in org.jboss.netty.channel.socket.http that implement ChannelHandlerModifier and TypeClassDescription(package private) final classprivate static final class -
Uses of ChannelHandler in org.jboss.netty.example.discard
Classes in org.jboss.netty.example.discard that implement ChannelHandlerModifier and TypeClassDescriptionclassHandles a client-side channel.classHandles a server-side channel. -
Uses of ChannelHandler in org.jboss.netty.example.echo
Classes in org.jboss.netty.example.echo that implement ChannelHandlerModifier and TypeClassDescriptionclassHandler implementation for the echo client.classHandler implementation for the echo server. -
Uses of ChannelHandler in org.jboss.netty.example.factorial
Classes in org.jboss.netty.example.factorial that implement ChannelHandlerModifier and TypeClassDescriptionclassDecodes the binary representation of aBigIntegerprepended with a magic number ('F' or 0x46) and a 32-bit integer length prefix into aBigIntegerinstance.classHandler for a client-side channel.classHandler for a server-side channel.classEncodes aNumberinto the binary representation prepended with a magic number ('F' or 0x46) and a 32-bit length prefix. -
Uses of ChannelHandler in org.jboss.netty.example.http.file
Classes in org.jboss.netty.example.http.file that implement ChannelHandlerModifier and TypeClassDescriptionclassA simple handler that serves incoming HTTP requests to send their respective HTTP responses. -
Uses of ChannelHandler in org.jboss.netty.example.http.helloworld
Classes in org.jboss.netty.example.http.helloworld that implement ChannelHandler -
Uses of ChannelHandler in org.jboss.netty.example.http.snoop
Classes in org.jboss.netty.example.http.snoop that implement ChannelHandler -
Uses of ChannelHandler in org.jboss.netty.example.http.upload
Classes in org.jboss.netty.example.http.upload that implement ChannelHandler -
Uses of ChannelHandler in org.jboss.netty.example.http.websocketx.autobahn
Classes in org.jboss.netty.example.http.websocketx.autobahn that implement ChannelHandler -
Uses of ChannelHandler in org.jboss.netty.example.http.websocketx.client
Classes in org.jboss.netty.example.http.websocketx.client that implement ChannelHandler -
Uses of ChannelHandler in org.jboss.netty.example.http.websocketx.server
Classes in org.jboss.netty.example.http.websocketx.server that implement ChannelHandler -
Uses of ChannelHandler in org.jboss.netty.example.localtime
Classes in org.jboss.netty.example.localtime that implement ChannelHandler -
Uses of ChannelHandler in org.jboss.netty.example.objectecho
Classes in org.jboss.netty.example.objectecho that implement ChannelHandlerModifier and TypeClassDescriptionclassHandler implementation for the object echo client.classHandles both client-side and server-side handler depending on which constructor was called. -
Uses of ChannelHandler in org.jboss.netty.example.portunification
Classes in org.jboss.netty.example.portunification that implement ChannelHandlerModifier and TypeClassDescriptionclassManipulates the current pipeline dynamically to switch protocols or enable SSL or GZIP. -
Uses of ChannelHandler in org.jboss.netty.example.proxy
Classes in org.jboss.netty.example.proxy that implement ChannelHandlerModifier and TypeClassDescriptionclassprivate class -
Uses of ChannelHandler in org.jboss.netty.example.qotm
Classes in org.jboss.netty.example.qotm that implement ChannelHandlerModifier and TypeClassDescriptionclassclass -
Uses of ChannelHandler in org.jboss.netty.example.securechat
Classes in org.jboss.netty.example.securechat that implement ChannelHandlerModifier and TypeClassDescriptionclassHandles a client-side channel.classHandles a server-side channel. -
Uses of ChannelHandler in org.jboss.netty.example.telnet
Classes in org.jboss.netty.example.telnet that implement ChannelHandlerModifier and TypeClassDescriptionclassHandles a client-side channel.classHandles a server-side channel. -
Uses of ChannelHandler in org.jboss.netty.example.uptime
Classes in org.jboss.netty.example.uptime that implement ChannelHandlerModifier and TypeClassDescriptionclassKeep reconnecting to the server while printing out the current uptime and connection attempt status. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.base64
Classes in org.jboss.netty.handler.codec.base64 that implement ChannelHandlerModifier and TypeClassDescriptionclassclassEncodes aChannelBufferinto a Base64-encodedChannelBuffer. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.compression
Classes in org.jboss.netty.handler.codec.compression that implement ChannelHandlerModifier and TypeClassDescriptionclassCompresses aChannelBufferusing the deflate algorithm.classDecompresses aChannelBufferusing the deflate algorithm.classCompresses aChannelBufferusing the deflate algorithm. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.embedder
Classes in org.jboss.netty.handler.codec.embedder that implement ChannelHandlerMethods in org.jboss.netty.handler.codec.embedder with parameters of type ChannelHandlerModifier and TypeMethodDescriptionprivate voidAbstractCodecEmbedder.configurePipeline(ChannelHandler... handlers) Constructors in org.jboss.netty.handler.codec.embedder with parameters of type ChannelHandlerModifierConstructorDescriptionprotectedAbstractCodecEmbedder(ChannelBufferFactory bufferFactory, ChannelHandler... handlers) Creates a new embedder whose pipeline is composed of the specified handlers.protectedAbstractCodecEmbedder(ChannelHandler... handlers) Creates a new embedder whose pipeline is composed of the specified handlers. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.frame
Classes in org.jboss.netty.handler.codec.frame that implement ChannelHandlerModifier and TypeClassDescriptionclassA decoder that splits the receivedChannelBuffers by one or more delimiters.classA decoder that splits the receivedChannelBuffers by the fixed number of bytes.classDecodes the receivedChannelBuffers into a meaningful frame object.classA decoder that splits the receivedChannelBuffers dynamically by the value of the length field in the message.classAn encoder that prepends the length of the message.classA decoder that splits the receivedChannelBuffers on line endings.Methods in org.jboss.netty.handler.codec.frame with parameters of type ChannelHandlerModifier and TypeMethodDescriptionvoidFrameDecoder.replace(String handlerName, ChannelHandler handler) -
Uses of ChannelHandler in org.jboss.netty.handler.codec.http
Classes in org.jboss.netty.handler.codec.http that implement ChannelHandlerModifier and TypeClassDescriptionclassAChannelHandlerthat aggregates anHttpMessageand its followingHttpChunks into a singleHttpMessagewith no followingHttpChunks.classA combination ofHttpRequestEncoderandHttpResponseDecoderwhich enables easier client side HTTP implementation.private final classprivate final classclassCompresses anHttpMessageand anHttpChunkingzipordeflateencoding while respecting the"Accept-Encoding"header.classDecodes the content of the receivedHttpRequestandHttpChunk.classclassEncodes the content of the outboundHttpResponseandHttpChunk.classclassclassclassclassclassclassA combination ofHttpRequestDecoderandHttpResponseEncoderwhich enables easier server side HTTP implementation. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.http.websocketx
Classes in org.jboss.netty.handler.codec.http.websocketx that implement ChannelHandlerModifier and TypeClassDescriptionclassDecodesChannelBuffers intoWebSocketFrames.classEncodes aWebSocketFrameinto aChannelBuffer.classDecodes a web socket frame from wire protocol version 7 format.classEncodes a web socket frame into wire protocol version 7 format.classDecodes a web socket frame from wire protocol version 8 format.classEncodes a web socket frame into wire protocol version 8 format.classDecodes a web socket frame from wire protocol version 13 format.classEncodes a web socket frame into wire protocol version 13 format.classHandler that aggregate fragmented WebSocketFrame's.classHandles WebSocket control frames (Close, Ping, Pong) and data frames (Text and Binary) are passed to the next handler in the pipeline.classHandles the HTTP handshake (the HTTP Upgrade request)Methods in org.jboss.netty.handler.codec.http.websocketx that return ChannelHandlerModifier and TypeMethodDescription(package private) static ChannelHandlerWebSocketServerProtocolHandler.forbiddenHttpRequestResponder()Methods in org.jboss.netty.handler.codec.http.websocketx with parameters of type ChannelHandlerModifier and TypeMethodDescription(package private) static voidWebSocketClientHandshaker.replaceDecoder(Channel channel, ChannelHandler wsDecoder) Replace the HTTP decoder with a new Web Socket decoder.protected ChannelFutureWebSocketServerHandshaker.writeHandshakeResponse(Channel channel, HttpResponse res, ChannelHandler encoder, ChannelHandler decoder) Upgrades the connection and send the handshake response. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.marshalling
Classes in org.jboss.netty.handler.codec.marshalling that implement ChannelHandlerModifier and TypeClassDescriptionclassclassOneToOneEncoderimplementation which uses JBoss Marshalling to marshal an Object.classDecoder which MUST be used withMarshallingEncoder.classOneToOneEncoderimplementation which uses JBoss Marshalling to marshal an Object. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.oneone
Classes in org.jboss.netty.handler.codec.oneone that implement ChannelHandlerModifier and TypeClassDescriptionclassTransforms a received message into another message.classTransforms a write request into another write request.classSpecialOneToOneEncoderwhich enforce strict ordering of encoding and writing. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.protobuf
Classes in org.jboss.netty.handler.codec.protobuf that implement ChannelHandlerModifier and TypeClassDescriptionclassclassclassA decoder that splits the receivedChannelBuffers dynamically by the value of the Google Protocol Buffers Base 128 Varints integer length field in the message.classAn encoder that prepends the the Google Protocol Buffers Base 128 Varints integer length field. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.replay
Classes in org.jboss.netty.handler.codec.replay that implement ChannelHandlerModifier and TypeClassDescriptionclassReplayingDecoder<T extends Enum<T>>A specialized variation ofFrameDecoderwhich enables implementation of a non-blocking decoder in the blocking I/O paradigm. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.rtsp
Classes in org.jboss.netty.handler.codec.rtsp that implement ChannelHandlerModifier and TypeClassDescriptionclassDecodesChannelBuffers into RTSP messages represented inHttpMessages.classEncodes an RTSP message represented inHttpMessageinto aChannelBuffer.classDecodesChannelBuffers into RTSP requests represented inHttpRequests.classEncodes an RTSP request represented inHttpRequestinto aChannelBuffer.classDecodesChannelBuffers into RTSP responses represented inHttpResponses.classEncodes an RTSP response represented inHttpResponseinto aChannelBuffer. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.serialization
Classes in org.jboss.netty.handler.codec.serialization that implement ChannelHandlerModifier and TypeClassDescriptionclassAn encoder which serializes a Java object into aChannelBuffer(interoperability version).classA decoder which deserializes the receivedChannelBuffers into Java objects.classAn encoder which serializes a Java object into aChannelBuffer. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.socks
Classes in org.jboss.netty.handler.codec.socks that implement ChannelHandlerModifier and TypeClassDescriptionclassDecodesChannelBuffers intoSocksAuthRequest.classDecodesChannelBuffers intoSocksAuthResponse.classDecodesChannelBuffers intoSocksCmdRequest.classDecodesChannelBuffers intoSocksCmdResponse.classDecodesChannelBuffers intoSocksInitRequest.classDecodesChannelBuffers intoSocksInitResponse.classEncodes anSocksMessageinto aChannelBuffer. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.spdy
Classes in org.jboss.netty.handler.codec.spdy that implement ChannelHandlerModifier and TypeClassDescriptionclassAChannelHandlerthat encodes and decodes SPDY Frames.classA combination ofSpdyHttpDecoderandSpdyHttpEncoderclassDecodesSpdySynStreamFrames,SpdySynReplyFrames, andSpdyDataFrames intoHttpRequests andHttpResponses.classEncodesHttpRequests,HttpResponses, andHttpChunks intoSpdySynStreamFrames andSpdySynReplyFrames.classSimpleChannelHandlerthat takes care of adding the right streamId to theHttpResponseif one is not present.classChannelUpstreamHandlerwhich is responsible to setup theChannelPipelineeither for HTTP or SPDY.classManages streams within a SPDY session. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.string
Classes in org.jboss.netty.handler.codec.string that implement ChannelHandlerModifier and TypeClassDescriptionclassDecodes a receivedChannelBufferinto aString.classEncodes the requestedStringinto aChannelBuffer. -
Uses of ChannelHandler in org.jboss.netty.handler.execution
Classes in org.jboss.netty.handler.execution that implement ChannelHandler -
Uses of ChannelHandler in org.jboss.netty.handler.ipfilter
Classes in org.jboss.netty.handler.ipfilter that implement ChannelHandlerModifier and TypeClassDescriptionclassGeneral class that handle Ip Filtering.classImplementation of Filter of IP based on ALLOW and DENY rules.
This implementation could be changed by implementing a newIpFilterRulethan defaultIpV4SubnetFilterRule(IPV4 support only),IpSubnetFilterRule(IPV4 and IPV6 support) orIpFilterRule(IP and host name string pattern support) .
The check is done by going from step to step in the underlying array of IpFilterRule.
EachIpFilterRuleanswers to the method accept if theInetAddressis accepted or not, according to its implementation.classHandler that block any new connection if there are already a currently active channel connected with the same InetAddress (IP).
-
Uses of ChannelHandler in org.jboss.netty.handler.logging
Classes in org.jboss.netty.handler.logging that implement ChannelHandler -
Uses of ChannelHandler in org.jboss.netty.handler.queue
Classes in org.jboss.netty.handler.queue that implement ChannelHandlerModifier and TypeClassDescriptionclassEmulates blocking read operation.classEmulates buffered write operation. -
Uses of ChannelHandler in org.jboss.netty.handler.ssl
Classes in org.jboss.netty.handler.ssl that implement ChannelHandlerModifier and TypeClassDescriptionclass -
Uses of ChannelHandler in org.jboss.netty.handler.stream
Classes in org.jboss.netty.handler.stream that implement ChannelHandlerModifier and TypeClassDescriptionclassAChannelHandlerthat adds support for writing a large data stream asynchronously neither spending a lot of memory nor gettingOutOfMemoryError. -
Uses of ChannelHandler in org.jboss.netty.handler.timeout
Classes in org.jboss.netty.handler.timeout that implement ChannelHandlerModifier and TypeClassDescriptionclassAn extendedSimpleChannelHandlerthat adds the handler method for anIdleStateEvent.classAn extendedSimpleChannelUpstreamHandlerthat adds the handler method for anIdleStateEvent.classTriggers anIdleStateEventwhen aChannelhas not performed read, write, or both operation for a while.classRaises aReadTimeoutExceptionwhen no data was read within a certain period of time.classRaises aWriteTimeoutExceptionwhen no data was written within a certain period of time. -
Uses of ChannelHandler in org.jboss.netty.handler.traffic
Classes in org.jboss.netty.handler.traffic that implement ChannelHandlerModifier and TypeClassDescriptionclassAbstractTrafficShapingHandler allows to limit the global bandwidth (seeGlobalTrafficShapingHandler) or per session bandwidth (seeChannelTrafficShapingHandler), as traffic shaping.classThis implementation of theAbstractTrafficShapingHandleris for channel traffic shaping, that is to say a per channel limitation of the bandwidth.classThis implementation of theAbstractTrafficShapingHandleris for global and per channel traffic shaping, that is to say a global limitation of the bandwidth, whatever the number of opened channels and a per channel limitation of the bandwidth.
This version shall not be in the same pipeline than other TrafficShapingHandler.
The general use should be as follow:
Create your unique GlobalChannelTrafficShapingHandler like:
GlobalChannelTrafficShapingHandler myHandler = new GlobalChannelTrafficShapingHandler(executor);
The executor could be the underlying IO worker pool
pipeline.addLast(myHandler);
Note that this handler has a Pipeline Coverage of "all" which means only one such handler must be created and shared among all channels as the counter must be shared among all channels.
Other arguments can be passed like write or read limitation (in bytes/s where 0 means no limitation) or the check interval (in millisecond) that represents the delay between two computations of the bandwidth and so the call back of the doAccounting method (0 means no accounting at all).
Note that as this is a fusion of both Global and Channel Traffic Shaping, limits are in 2 sets, respectively Global and Channel.
A value of 0 means no accounting for checkInterval.classThis implementation of theAbstractTrafficShapingHandleris for global traffic shaping, that is to say a global limitation of the bandwidth, whatever the number of opened channels.