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
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.
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 optionalChannelHandler
which 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 TypeMethodDescriptionvoid
ServerBootstrap.setParentHandler
(ChannelHandler parentHandler) Sets an optionalChannelHandler
which 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 TypeMethodDescriptionvoid
Bootstrap.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 TypeInterfaceDescriptioninterface
Handles or intercepts a downstreamChannelEvent
, and sends aChannelEvent
to the next handler in aChannelPipeline
.interface
Handles or intercepts an upstreamChannelEvent
, and sends aChannelEvent
to the next handler in aChannelPipeline
.interface
AChannelHandler
that is notified when it is added to or removed from aChannelPipeline
.Classes in org.jboss.netty.channel that implement ChannelHandlerModifier and TypeClassDescriptionclass
AChannelDownstreamHandler
which provides an individual handler method for each event type.class
AChannelHandler
which provides an individual handler method for each event type.class
AChannelUpstreamHandler
which provides an individual handler method for each event type.Fields in org.jboss.netty.channel declared as ChannelHandlerModifier and TypeFieldDescriptionprivate final ChannelHandler
DefaultChannelPipeline.DefaultChannelHandlerContext.handler
Methods in org.jboss.netty.channel with type parameters of type ChannelHandlerModifier and TypeMethodDescription<T extends ChannelHandler>
TReturns theChannelHandler
of the specified type in this pipeline.<T extends ChannelHandler>
T<T extends ChannelHandler>
TRemoves theChannelHandler
of the specified type from this pipeline<T extends ChannelHandler>
T<T extends ChannelHandler>
TChannelPipeline.replace
(Class<T> oldHandlerType, String newName, ChannelHandler newHandler) Replaces theChannelHandler
of 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 theChannelHandler
with the specified name in this pipeline.ChannelPipeline.getFirst()
Returns the firstChannelHandler
in this pipeline.DefaultChannelPipeline.getFirst()
ChannelHandlerContext.getHandler()
Returns theChannelHandler
that this context object is serving.DefaultChannelPipeline.DefaultChannelHandlerContext.getHandler()
ChannelPipeline.getLast()
Returns the lastChannelHandler
in this pipeline.DefaultChannelPipeline.getLast()
Removes theChannelHandler
with the specified name from this pipeline.ChannelPipeline.removeFirst()
Removes the firstChannelHandler
in this pipeline.DefaultChannelPipeline.removeFirst()
ChannelPipeline.removeLast()
Removes the lastChannelHandler
in this pipeline.DefaultChannelPipeline.removeLast()
ChannelPipeline.replace
(String oldName, String newName, ChannelHandler newHandler) Replaces theChannelHandler
of the specified name with a new handler in this pipeline.DefaultChannelPipeline.replace
(String oldName, String newName, ChannelHandler newHandler) private ChannelHandler
DefaultChannelPipeline.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 orderedMap
whose keys are handler names and whose values are handlers.DefaultChannelPipeline.toMap()
Methods in org.jboss.netty.channel with parameters of type ChannelHandlerModifier and TypeMethodDescriptionvoid
ChannelPipeline.addAfter
(String baseName, String name, ChannelHandler handler) Inserts aChannelHandler
after an existing handler of this pipeline.void
DefaultChannelPipeline.addAfter
(String baseName, String name, ChannelHandler handler) void
ChannelPipeline.addBefore
(String baseName, String name, ChannelHandler handler) Inserts aChannelHandler
before an existing handler of this pipeline.void
DefaultChannelPipeline.addBefore
(String baseName, String name, ChannelHandler handler) void
ChannelPipeline.addFirst
(String name, ChannelHandler handler) Inserts aChannelHandler
at the first position of this pipeline.void
DefaultChannelPipeline.addFirst
(String name, ChannelHandler handler) void
ChannelPipeline.addLast
(String name, ChannelHandler handler) Appends aChannelHandler
at the last position of this pipeline.void
DefaultChannelPipeline.addLast
(String name, ChannelHandler handler) ChannelPipeline.getContext
(ChannelHandler handler) Returns the context object of the specifiedChannelHandler
in this pipeline.DefaultChannelPipeline.getContext
(ChannelHandler handler) DefaultChannelPipeline.getContextOrDie
(ChannelHandler handler) private void
DefaultChannelPipeline.init
(String name, ChannelHandler handler) static ChannelPipeline
Channels.pipeline
(ChannelHandler... handlers) Creates a newChannelPipeline
which contains the specifiedChannelHandler
s.void
ChannelPipeline.remove
(ChannelHandler handler) Removes the specifiedChannelHandler
from this pipeline.void
DefaultChannelPipeline.remove
(ChannelHandler handler) <T extends ChannelHandler>
TChannelPipeline.replace
(Class<T> oldHandlerType, String newName, ChannelHandler newHandler) Replaces theChannelHandler
of the specified type with a new handler in this pipeline.ChannelPipeline.replace
(String oldName, String newName, ChannelHandler newHandler) Replaces theChannelHandler
of the specified name with a new handler in this pipeline.void
ChannelPipeline.replace
(ChannelHandler oldHandler, String newName, ChannelHandler newHandler) Replaces the specifiedChannelHandler
with 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) void
DefaultChannelPipeline.replace
(ChannelHandler oldHandler, String newName, ChannelHandler newHandler) private ChannelHandler
DefaultChannelPipeline.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 theChannelHandler
of 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 class
private static final class
-
Uses of ChannelHandler in org.jboss.netty.example.discard
Classes in org.jboss.netty.example.discard that implement ChannelHandlerModifier and TypeClassDescriptionclass
Handles a client-side channel.class
Handles a server-side channel. -
Uses of ChannelHandler in org.jboss.netty.example.echo
Classes in org.jboss.netty.example.echo that implement ChannelHandlerModifier and TypeClassDescriptionclass
Handler implementation for the echo client.class
Handler 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 TypeClassDescriptionclass
Decodes the binary representation of aBigInteger
prepended with a magic number ('F' or 0x46) and a 32-bit integer length prefix into aBigInteger
instance.class
Handler for a client-side channel.class
Handler for a server-side channel.class
Encodes aNumber
into 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 TypeClassDescriptionclass
A 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 TypeClassDescriptionclass
Handler implementation for the object echo client.class
Handles 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 TypeClassDescriptionclass
Manipulates 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 TypeClassDescriptionclass
private class
-
Uses of ChannelHandler in org.jboss.netty.example.qotm
Classes in org.jboss.netty.example.qotm that implement ChannelHandlerModifier and TypeClassDescriptionclass
class
-
Uses of ChannelHandler in org.jboss.netty.example.securechat
Classes in org.jboss.netty.example.securechat that implement ChannelHandlerModifier and TypeClassDescriptionclass
Handles a client-side channel.class
Handles a server-side channel. -
Uses of ChannelHandler in org.jboss.netty.example.telnet
Classes in org.jboss.netty.example.telnet that implement ChannelHandlerModifier and TypeClassDescriptionclass
Handles a client-side channel.class
Handles a server-side channel. -
Uses of ChannelHandler in org.jboss.netty.example.uptime
Classes in org.jboss.netty.example.uptime that implement ChannelHandlerModifier and TypeClassDescriptionclass
Keep 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 TypeClassDescriptionclass
class
Encodes aChannelBuffer
into 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 TypeClassDescriptionclass
Compresses aChannelBuffer
using the deflate algorithm.class
Decompresses aChannelBuffer
using the deflate algorithm.class
Compresses aChannelBuffer
using 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 void
AbstractCodecEmbedder.configurePipeline
(ChannelHandler... handlers) Constructors in org.jboss.netty.handler.codec.embedder with parameters of type ChannelHandlerModifierConstructorDescriptionprotected
AbstractCodecEmbedder
(ChannelBufferFactory bufferFactory, ChannelHandler... handlers) Creates a new embedder whose pipeline is composed of the specified handlers.protected
AbstractCodecEmbedder
(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 TypeClassDescriptionclass
A decoder that splits the receivedChannelBuffer
s by one or more delimiters.class
A decoder that splits the receivedChannelBuffer
s by the fixed number of bytes.class
Decodes the receivedChannelBuffer
s into a meaningful frame object.class
A decoder that splits the receivedChannelBuffer
s dynamically by the value of the length field in the message.class
An encoder that prepends the length of the message.class
A decoder that splits the receivedChannelBuffer
s on line endings.Methods in org.jboss.netty.handler.codec.frame with parameters of type ChannelHandlerModifier and TypeMethodDescriptionvoid
FrameDecoder.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 TypeClassDescriptionclass
AChannelHandler
that aggregates anHttpMessage
and its followingHttpChunk
s into a singleHttpMessage
with no followingHttpChunk
s.class
A combination ofHttpRequestEncoder
andHttpResponseDecoder
which enables easier client side HTTP implementation.private final class
private final class
class
Compresses anHttpMessage
and anHttpChunk
ingzip
ordeflate
encoding while respecting the"Accept-Encoding"
header.class
Decodes the content of the receivedHttpRequest
andHttpChunk
.class
class
Encodes the content of the outboundHttpResponse
andHttpChunk
.class
class
class
class
class
class
class
A combination ofHttpRequestDecoder
andHttpResponseEncoder
which 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 TypeClassDescriptionclass
DecodesChannelBuffer
s intoWebSocketFrame
s.class
Encodes aWebSocketFrame
into aChannelBuffer
.class
Decodes a web socket frame from wire protocol version 7 format.class
Encodes a web socket frame into wire protocol version 7 format.class
Decodes a web socket frame from wire protocol version 8 format.class
Encodes a web socket frame into wire protocol version 8 format.class
Decodes a web socket frame from wire protocol version 13 format.class
Encodes a web socket frame into wire protocol version 13 format.class
Handler that aggregate fragmented WebSocketFrame's.class
Handles WebSocket control frames (Close, Ping, Pong) and data frames (Text and Binary) are passed to the next handler in the pipeline.class
Handles the HTTP handshake (the HTTP Upgrade request)Methods in org.jboss.netty.handler.codec.http.websocketx that return ChannelHandlerModifier and TypeMethodDescription(package private) static ChannelHandler
WebSocketServerProtocolHandler.forbiddenHttpRequestResponder()
Methods in org.jboss.netty.handler.codec.http.websocketx with parameters of type ChannelHandlerModifier and TypeMethodDescription(package private) static void
WebSocketClientHandshaker.replaceDecoder
(Channel channel, ChannelHandler wsDecoder) Replace the HTTP decoder with a new Web Socket decoder.protected ChannelFuture
WebSocketServerHandshaker.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 TypeClassDescriptionclass
class
OneToOneEncoder
implementation which uses JBoss Marshalling to marshal an Object.class
Decoder which MUST be used withMarshallingEncoder
.class
OneToOneEncoder
implementation 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 TypeClassDescriptionclass
Transforms a received message into another message.class
Transforms a write request into another write request.class
SpecialOneToOneEncoder
which 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 TypeClassDescriptionclass
class
class
A decoder that splits the receivedChannelBuffer
s dynamically by the value of the Google Protocol Buffers Base 128 Varints integer length field in the message.class
An 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 TypeClassDescriptionclass
ReplayingDecoder<T extends Enum<T>>
A specialized variation ofFrameDecoder
which 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 TypeClassDescriptionclass
DecodesChannelBuffer
s into RTSP messages represented inHttpMessage
s.class
Encodes an RTSP message represented inHttpMessage
into aChannelBuffer
.class
DecodesChannelBuffer
s into RTSP requests represented inHttpRequest
s.class
Encodes an RTSP request represented inHttpRequest
into aChannelBuffer
.class
DecodesChannelBuffer
s into RTSP responses represented inHttpResponse
s.class
Encodes an RTSP response represented inHttpResponse
into aChannelBuffer
. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.serialization
Classes in org.jboss.netty.handler.codec.serialization that implement ChannelHandlerModifier and TypeClassDescriptionclass
An encoder which serializes a Java object into aChannelBuffer
(interoperability version).class
A decoder which deserializes the receivedChannelBuffer
s into Java objects.class
An 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 TypeClassDescriptionclass
DecodesChannelBuffer
s intoSocksAuthRequest
.class
DecodesChannelBuffer
s intoSocksAuthResponse
.class
DecodesChannelBuffer
s intoSocksCmdRequest
.class
DecodesChannelBuffer
s intoSocksCmdResponse
.class
DecodesChannelBuffer
s intoSocksInitRequest
.class
DecodesChannelBuffer
s intoSocksInitResponse
.class
Encodes anSocksMessage
into aChannelBuffer
. -
Uses of ChannelHandler in org.jboss.netty.handler.codec.spdy
Classes in org.jboss.netty.handler.codec.spdy that implement ChannelHandlerModifier and TypeClassDescriptionclass
AChannelHandler
that encodes and decodes SPDY Frames.class
A combination ofSpdyHttpDecoder
andSpdyHttpEncoder
class
DecodesSpdySynStreamFrame
s,SpdySynReplyFrame
s, andSpdyDataFrame
s intoHttpRequest
s andHttpResponse
s.class
EncodesHttpRequest
s,HttpResponse
s, andHttpChunk
s intoSpdySynStreamFrame
s andSpdySynReplyFrame
s.class
SimpleChannelHandler
that takes care of adding the right streamId to theHttpResponse
if one is not present.class
ChannelUpstreamHandler
which is responsible to setup theChannelPipeline
either for HTTP or SPDY.class
Manages 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 TypeClassDescriptionclass
Decodes a receivedChannelBuffer
into aString
.class
Encodes the requestedString
into 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 TypeClassDescriptionclass
General class that handle Ip Filtering.class
Implementation of Filter of IP based on ALLOW and DENY rules.
This implementation could be changed by implementing a newIpFilterRule
than 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.
EachIpFilterRule
answers to the method accept if theInetAddress
is accepted or not, according to its implementation.class
Handler 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 TypeClassDescriptionclass
Emulates blocking read operation.class
Emulates 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 TypeClassDescriptionclass
AChannelHandler
that 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 TypeClassDescriptionclass
An extendedSimpleChannelHandler
that adds the handler method for anIdleStateEvent
.class
An extendedSimpleChannelUpstreamHandler
that adds the handler method for anIdleStateEvent
.class
Triggers anIdleStateEvent
when aChannel
has not performed read, write, or both operation for a while.class
Raises aReadTimeoutException
when no data was read within a certain period of time.class
Raises aWriteTimeoutException
when 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 TypeClassDescriptionclass
AbstractTrafficShapingHandler allows to limit the global bandwidth (seeGlobalTrafficShapingHandler
) or per session bandwidth (seeChannelTrafficShapingHandler
), as traffic shaping.class
This implementation of theAbstractTrafficShapingHandler
is for channel traffic shaping, that is to say a per channel limitation of the bandwidth.class
This implementation of theAbstractTrafficShapingHandler
is 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.class
This implementation of theAbstractTrafficShapingHandler
is for global traffic shaping, that is to say a global limitation of the bandwidth, whatever the number of opened channels.