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 aByteBufand 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 BuffersMessageandMessageNanointo aByteBufand 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 aSerializableobject 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 aStringinto aByteBufand 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 classChannelInitializer<C extends Channel>A specialChannelInboundHandlerwhich offers an easy way to initialize aChannelonce 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 classResolveAddressHandlerChannelOutboundHandlerAdapterwhich will resolve theSocketAddressthat is passed toResolveAddressHandler.connect(ChannelHandlerContext, SocketAddress, SocketAddress, ChannelPromise)if it is not already resolved and theAddressResolversupports 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 classLengthFieldPrependerAn 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 classBase64DecoderclassBase64Encoder -
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 classByteArrayEncoderEncodes 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 classBrotliEncoderCompress aByteBufwith 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 classDatagramDnsQueryDecoderDecodes aDatagramPacketinto aDatagramDnsQuery.classDatagramDnsQueryEncoderclassDatagramDnsResponseDecoderDecodes aDatagramPacketinto aDatagramDnsResponse.classDatagramDnsResponseEncoderclassTcpDnsQueryEncoderclassTcpDnsResponseEncoder -
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 classHAProxyMessageEncoderEncodes 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 classWebSocket00FrameEncoderEncodes aWebSocketFrameinto 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 classWebSocketClientCompressionHandlerExtends 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 classHttp2StreamFrameToHttpObjectCodecThis handler converts fromHttp2StreamFrametoHttpObject, 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 classCompatibleMarshallingEncoderMessageToByteEncoderimplementation which uses JBoss Marshalling to marshal an Object.classMarshallingEncoderMessageToByteEncoderimplementation 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 classMqttEncoder -
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 classProtobufDecoderclassProtobufDecoderNanoclassProtobufEncoderclassProtobufEncoderNanoclassProtobufVarint32LengthFieldPrependerAn 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 classRtspObjectEncoder<H extends HttpMessage>Deprecated.UseRtspEncoderinstead. -
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 classObjectEncoderDeprecated.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 classSocksMessageEncoderEncodes anSocksMessageinto 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 classSocks4ClientEncoderEncodes aSocks4CommandRequestinto aByteBuf.classSocks4ServerEncoderEncodes aSocks4CommandResponseinto 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 classSocks5ClientEncoderEncodes a client-sideSocks5Messageinto aByteBuf.classSocks5ServerEncoderEncodes a server-sideSocks5Messageinto 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 classLineEncoderApply a line separator to the requestedStringand encode it into aByteBuf.classStringDecoderDecodes a receivedByteBufinto aString.classStringEncoderEncodes the requestedStringinto 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 classIpSubnetFilterThis class allows one to filter newChannels based on theIpSubnetFilters passed to its constructor.classRuleBasedIpFilterThis class allows one to filter newChannels based on theIpFilterRules passed to its constructor.classUniqueIpFilterThis class allows one to ensure that at all times for every IP address there is at most oneChannelconnected 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 classLoggingHandlerAChannelHandlerthat 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 classGlobalChannelTrafficShapingHandlerThis 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.classGlobalTrafficShapingHandlerThis implementation of theAbstractTrafficShapingHandleris for global traffic shaping, that is to say a global limitation of the bandwidth, whatever the number of opened channels.
-