Uses of Class
org.jboss.netty.channel.ChannelHandler.Sharable
-
Packages that use ChannelHandler.Sharable Package Description org.jboss.netty.handler.codec.base64 Encoder and decoder which transform a Base64-encodedString
orChannelBuffer
into a decodedChannelBuffer
and vice versa.org.jboss.netty.handler.codec.frame 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.org.jboss.netty.handler.codec.http.websocketx Encoder, decoder, handshakers and their related message types for Web Socket data frames.org.jboss.netty.handler.codec.marshalling Decoder and Encoder which uses JBoss Marshalling.org.jboss.netty.handler.codec.protobuf Encoder and decoder which transform a Google Protocol BuffersMessage
into aChannelBuffer
and vice versa.org.jboss.netty.handler.codec.rtsp An RTSP extension based on the HTTP codec.org.jboss.netty.handler.codec.serialization Encoder, decoder and their compatibility stream implementations which transform aSerializable
object into a byte buffer and vice versa.org.jboss.netty.handler.codec.socks Encoder, decoder and their related message types for Socks.org.jboss.netty.handler.codec.string Encoder and decoder which transform aString
into aChannelBuffer
and vice versa.org.jboss.netty.handler.execution Executor
-based implementation of various thread models that separate business logic from I/O threadsorg.jboss.netty.handler.ipfilter Implementation of a Ip based Filter handlers.
org.jboss.netty.handler.logging Logs aChannelEvent
for debugging purpose using anInternalLogger
.org.jboss.netty.handler.timeout Adds support for read and write timeout and idle connection notification using aTimer
.org.jboss.netty.handler.traffic Implementation of a Traffic Shaping Handler and Dynamic Statistics.
-
-
Uses of ChannelHandler.Sharable in org.jboss.netty.handler.codec.base64
Classes in org.jboss.netty.handler.codec.base64 with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
Base64Decoder
class
Base64Encoder
Encodes aChannelBuffer
into a Base64-encodedChannelBuffer
. -
Uses of ChannelHandler.Sharable in org.jboss.netty.handler.codec.frame
Classes in org.jboss.netty.handler.codec.frame with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
LengthFieldPrepender
An encoder that prepends the length of the message. -
Uses of ChannelHandler.Sharable in org.jboss.netty.handler.codec.http.websocketx
Classes in org.jboss.netty.handler.codec.http.websocketx with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
WebSocket00FrameEncoder
Encodes aWebSocketFrame
into aChannelBuffer
. -
Uses of ChannelHandler.Sharable in org.jboss.netty.handler.codec.marshalling
Classes in org.jboss.netty.handler.codec.marshalling with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
CompatibleMarshallingEncoder
OneToOneEncoder
implementation which uses JBoss Marshalling to marshal an Object.class
MarshallingEncoder
OneToOneEncoder
implementation which uses JBoss Marshalling to marshal an Object. -
Uses of ChannelHandler.Sharable in org.jboss.netty.handler.codec.protobuf
Classes in org.jboss.netty.handler.codec.protobuf with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
ProtobufDecoder
class
ProtobufEncoder
class
ProtobufVarint32LengthFieldPrepender
An encoder that prepends the the Google Protocol Buffers Base 128 Varints integer length field. -
Uses of ChannelHandler.Sharable in org.jboss.netty.handler.codec.rtsp
Classes in org.jboss.netty.handler.codec.rtsp with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
RtspMessageEncoder
Encodes an RTSP message represented inHttpMessage
into aChannelBuffer
. -
Uses of ChannelHandler.Sharable in org.jboss.netty.handler.codec.serialization
Classes in org.jboss.netty.handler.codec.serialization with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
ObjectEncoder
An encoder which serializes a Java object into aChannelBuffer
. -
Uses of ChannelHandler.Sharable in org.jboss.netty.handler.codec.socks
Classes in org.jboss.netty.handler.codec.socks with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
SocksMessageEncoder
Encodes anSocksMessage
into aChannelBuffer
. -
Uses of ChannelHandler.Sharable in org.jboss.netty.handler.codec.string
Classes in org.jboss.netty.handler.codec.string with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
StringDecoder
Decodes a receivedChannelBuffer
into aString
.class
StringEncoder
Encodes the requestedString
into aChannelBuffer
. -
Uses of ChannelHandler.Sharable in org.jboss.netty.handler.execution
Classes in org.jboss.netty.handler.execution with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
ExecutionHandler
Forwards an upstreamChannelEvent
to anExecutor
. -
Uses of ChannelHandler.Sharable in org.jboss.netty.handler.ipfilter
Classes in org.jboss.netty.handler.ipfilter with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
IpFilterRuleHandler
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
OneIpFilterHandler
Handler that block any new connection if there are already a currently active channel connected with the same InetAddress (IP).
-
Uses of ChannelHandler.Sharable in org.jboss.netty.handler.logging
Classes in org.jboss.netty.handler.logging with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
LoggingHandler
AChannelHandler
that logs all events viaInternalLogger
. -
Uses of ChannelHandler.Sharable in org.jboss.netty.handler.timeout
Classes in org.jboss.netty.handler.timeout with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
IdleStateHandler
Triggers anIdleStateEvent
when aChannel
has not performed read, write, or both operation for a while.class
ReadTimeoutHandler
Raises aReadTimeoutException
when no data was read within a certain period of time.class
WriteTimeoutHandler
Raises aWriteTimeoutException
when no data was written within a certain period of time. -
Uses of ChannelHandler.Sharable in org.jboss.netty.handler.traffic
Classes in org.jboss.netty.handler.traffic with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
GlobalChannelTrafficShapingHandler
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
GlobalTrafficShapingHandler
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.
-