Uses of Class
io.netty.channel.ChannelHandler.Sharable
-
Packages that use ChannelHandler.Sharable Package Description io.netty.channel The core channel API which is asynchronous and event-driven abstraction of various transports such as a NIO Channel.io.netty.handler.address Package to dynamically replace local / remoteSocketAddress
.io.netty.handler.codec 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.io.netty.handler.codec.base64 io.netty.handler.codec.bytes Encoder and decoder which transform an array of bytes into aByteBuf
and vice versa.io.netty.handler.codec.compression io.netty.handler.codec.dns DNS codec.io.netty.handler.codec.haproxy Decodes an HAProxy proxy protocol headerio.netty.handler.codec.http.websocketx Encoder, decoder, handshakers and their related message types for Web Socket data frames.io.netty.handler.codec.http.websocketx.extensions.compression Encoder, decoder, handshakers to handle most common WebSocket Compression Extensions.io.netty.handler.codec.http2 Handlers for sending and receiving HTTP/2 frames.io.netty.handler.codec.marshalling Decoder and Encoder which uses JBoss Marshalling.io.netty.handler.codec.mqtt Encoder, decoder and different Message Types for MQTT.io.netty.handler.codec.protobuf Encoder and decoder which transform a Google Protocol BuffersMessage
andMessageNano
into aByteBuf
and vice versa.io.netty.handler.codec.rtsp An RTSP extension based on the HTTP codec.io.netty.handler.codec.serialization Encoder, decoder and their compatibility stream implementations which transform aSerializable
object into a byte buffer and vice versa.io.netty.handler.codec.socks Encoder, decoder and their related message types for Socks.io.netty.handler.codec.socksx.v4 Encoder, decoder and their related message types for SOCKSv4 protocol.io.netty.handler.codec.socksx.v5 Encoder, decoder and their related message types for SOCKSv5 protocol.io.netty.handler.codec.string Encoder and decoder which transform aString
into aByteBuf
and vice versa.io.netty.handler.ipfilter Package to filter IP addresses (allow/deny).io.netty.handler.logging Logs the I/O events for debugging purpose.io.netty.handler.traffic Implementation of a Traffic Shaping Handler and Dynamic Statistics. -
-
Uses of ChannelHandler.Sharable in io.netty.channel
Classes in io.netty.channel with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
ChannelInitializer<C extends Channel>
A specialChannelInboundHandler
which offers an easy way to initialize aChannel
once it was registered to itsEventLoop
. -
Uses of ChannelHandler.Sharable in io.netty.handler.address
Classes in io.netty.handler.address with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
ResolveAddressHandler
ChannelOutboundHandlerAdapter
which will resolve theSocketAddress
that is passed toResolveAddressHandler.connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise)
if it is not already resolved and theAddressResolver
supports the type ofSocketAddress
. -
Uses of ChannelHandler.Sharable in io.netty.handler.codec
Classes in io.netty.handler.codec 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 io.netty.handler.codec.base64
Classes in io.netty.handler.codec.base64 with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
Base64Decoder
class
Base64Encoder
-
Uses of ChannelHandler.Sharable in io.netty.handler.codec.bytes
Classes in io.netty.handler.codec.bytes with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
ByteArrayEncoder
Encodes the requested array of bytes into aByteBuf
. -
Uses of ChannelHandler.Sharable in io.netty.handler.codec.compression
Classes in io.netty.handler.codec.compression with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
BrotliEncoder
Compress aByteBuf
with the Brotli compression. -
Uses of ChannelHandler.Sharable in io.netty.handler.codec.dns
Classes in io.netty.handler.codec.dns with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
DatagramDnsQueryDecoder
Decodes aDatagramPacket
into aDatagramDnsQuery
.class
DatagramDnsQueryEncoder
class
DatagramDnsResponseDecoder
Decodes aDatagramPacket
into aDatagramDnsResponse
.class
DatagramDnsResponseEncoder
class
TcpDnsQueryEncoder
class
TcpDnsResponseEncoder
-
Uses of ChannelHandler.Sharable in io.netty.handler.codec.haproxy
Classes in io.netty.handler.codec.haproxy with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
HAProxyMessageEncoder
Encodes an HAProxy proxy protocol message -
Uses of ChannelHandler.Sharable in io.netty.handler.codec.http.websocketx
Classes in io.netty.handler.codec.http.websocketx with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
WebSocket00FrameEncoder
Encodes aWebSocketFrame
into aByteBuf
. -
Uses of ChannelHandler.Sharable in io.netty.handler.codec.http.websocketx.extensions.compression
Classes in io.netty.handler.codec.http.websocketx.extensions.compression with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
WebSocketClientCompressionHandler
Extends io.netty.handler.codec.http.websocketx.extensions.compression.WebSocketClientExtensionHandler to handle the most common WebSocket Compression Extensions. -
Uses of ChannelHandler.Sharable in io.netty.handler.codec.http2
Classes in io.netty.handler.codec.http2 with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
Http2StreamFrameToHttpObjectCodec
This handler converts fromHttp2StreamFrame
toHttpObject
, and back. -
Uses of ChannelHandler.Sharable in io.netty.handler.codec.marshalling
Classes in io.netty.handler.codec.marshalling with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
CompatibleMarshallingEncoder
MessageToByteEncoder
implementation which uses JBoss Marshalling to marshal an Object.class
MarshallingEncoder
MessageToByteEncoder
implementation which uses JBoss Marshalling to marshal an Object. -
Uses of ChannelHandler.Sharable in io.netty.handler.codec.mqtt
Classes in io.netty.handler.codec.mqtt with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
MqttEncoder
-
Uses of ChannelHandler.Sharable in io.netty.handler.codec.protobuf
Classes in io.netty.handler.codec.protobuf with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
ProtobufDecoder
class
ProtobufDecoderNano
class
ProtobufEncoder
class
ProtobufEncoderNano
class
ProtobufVarint32LengthFieldPrepender
An encoder that prepends the Google Protocol Buffers Base 128 Varints integer length field. -
Uses of ChannelHandler.Sharable in io.netty.handler.codec.rtsp
Classes in io.netty.handler.codec.rtsp with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
RtspObjectEncoder<H extends HttpMessage>
Deprecated.UseRtspEncoder
instead. -
Uses of ChannelHandler.Sharable in io.netty.handler.codec.serialization
Classes in io.netty.handler.codec.serialization with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
ObjectEncoder
Deprecated.This class has been deprecated with no replacement, because serialization can be a security liability -
Uses of ChannelHandler.Sharable in io.netty.handler.codec.socks
Classes in io.netty.handler.codec.socks with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
SocksMessageEncoder
Encodes anSocksMessage
into aByteBuf
. -
Uses of ChannelHandler.Sharable in io.netty.handler.codec.socksx.v4
Classes in io.netty.handler.codec.socksx.v4 with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
Socks4ClientEncoder
Encodes aSocks4CommandRequest
into aByteBuf
.class
Socks4ServerEncoder
Encodes aSocks4CommandResponse
into aByteBuf
. -
Uses of ChannelHandler.Sharable in io.netty.handler.codec.socksx.v5
Classes in io.netty.handler.codec.socksx.v5 with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
Socks5ClientEncoder
Encodes a client-sideSocks5Message
into aByteBuf
.class
Socks5ServerEncoder
Encodes a server-sideSocks5Message
into aByteBuf
. -
Uses of ChannelHandler.Sharable in io.netty.handler.codec.string
Classes in io.netty.handler.codec.string with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
LineEncoder
Apply a line separator to the requestedString
and encode it into aByteBuf
.class
StringDecoder
Decodes a receivedByteBuf
into aString
.class
StringEncoder
Encodes the requestedString
into aByteBuf
. -
Uses of ChannelHandler.Sharable in io.netty.handler.ipfilter
Classes in io.netty.handler.ipfilter with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
IpSubnetFilter
This class allows one to filter newChannel
s based on theIpSubnetFilter
s passed to its constructor.class
RuleBasedIpFilter
This class allows one to filter newChannel
s based on theIpFilterRule
s passed to its constructor.class
UniqueIpFilter
This class allows one to ensure that at all times for every IP address there is at most oneChannel
connected to the server. -
Uses of ChannelHandler.Sharable in io.netty.handler.logging
Classes in io.netty.handler.logging with annotations of type ChannelHandler.Sharable Modifier and Type Class Description class
LoggingHandler
AChannelHandler
that logs all events using a logging framework. -
Uses of ChannelHandler.Sharable in io.netty.handler.traffic
Classes in io.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.
-