Uses of Class
io.netty.channel.ChannelDuplexHandler
-
Packages that use ChannelDuplexHandler 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.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.http Encoder, decoder and their related message types for HTTP.io.netty.handler.codec.http.cors This package contains Cross Origin Resource Sharing (CORS) related classes.io.netty.handler.codec.http.websocketx.extensions Encoder, decoder, handshakers to handle WebSocket Extensions.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.memcache.binary Implementations and Interfaces for the Memcache Binary protocol.io.netty.handler.codec.spdy Encoder, decoder, session handler and their related message types for the SPDY protocol.io.netty.handler.flow Package to control the flow of messages.io.netty.handler.flush Package to control flush behavior.io.netty.handler.logging Logs the I/O events for debugging purpose.io.netty.handler.pcap Capture data and write into Pcap format which helps in troubleshooting.io.netty.handler.proxy Adds support for client connections via proxy protocols such as SOCKS and HTTP CONNECT tunnelingio.netty.handler.stream Writes very large data stream asynchronously neither spending a lot of memory nor gettingOutOfMemoryError.io.netty.handler.timeout Adds support for read and write timeout and idle connection notification using aTimer.io.netty.handler.traffic Implementation of a Traffic Shaping Handler and Dynamic Statistics. -
-
Uses of ChannelDuplexHandler in io.netty.channel
Subclasses of ChannelDuplexHandler in io.netty.channel Modifier and Type Class Description classCombinedChannelDuplexHandler<I extends ChannelInboundHandler,O extends ChannelOutboundHandler> -
Uses of ChannelDuplexHandler in io.netty.handler.codec
Subclasses of ChannelDuplexHandler in io.netty.handler.codec Modifier and Type Class Description classByteToMessageCodec<I>A Codec for on-the-fly encoding/decoding of bytes to messages and vise-versa.classMessageToMessageCodec<INBOUND_IN,OUTBOUND_IN>A Codec for on-the-fly encoding/decoding of message. -
Uses of ChannelDuplexHandler in io.netty.handler.codec.http
Subclasses of ChannelDuplexHandler in io.netty.handler.codec.http Modifier and Type Class Description classHttpClientCodecA combination ofHttpRequestEncoderandHttpResponseDecoderwhich enables easier client side HTTP implementation.classHttpContentCompressorCompresses anHttpMessageand anHttpContentingzipordeflateencoding while respecting the"Accept-Encoding"header.classHttpContentEncoderEncodes the content of the outboundHttpResponseandHttpContent.classHttpServerCodecA combination ofHttpRequestDecoderandHttpResponseEncoderwhich enables easier server side HTTP implementation.classHttpServerKeepAliveHandlerHttpServerKeepAliveHandler helps close persistent connections when appropriate. -
Uses of ChannelDuplexHandler in io.netty.handler.codec.http.cors
Subclasses of ChannelDuplexHandler in io.netty.handler.codec.http.cors Modifier and Type Class Description classCorsHandlerHandles Cross Origin Resource Sharing (CORS) requests. -
Uses of ChannelDuplexHandler in io.netty.handler.codec.http.websocketx.extensions
Subclasses of ChannelDuplexHandler in io.netty.handler.codec.http.websocketx.extensions Modifier and Type Class Description classWebSocketClientExtensionHandlerThis handler negotiates and initializes the WebSocket Extensions.classWebSocketServerExtensionHandlerThis handler negotiates and initializes the WebSocket Extensions. -
Uses of ChannelDuplexHandler in io.netty.handler.codec.http.websocketx.extensions.compression
Subclasses of ChannelDuplexHandler in io.netty.handler.codec.http.websocketx.extensions.compression Modifier and Type Class Description classWebSocketClientCompressionHandlerExtends io.netty.handler.codec.http.websocketx.extensions.compression.WebSocketClientExtensionHandler to handle the most common WebSocket Compression Extensions.classWebSocketServerCompressionHandlerExtends io.netty.handler.codec.http.websocketx.extensions.compression.WebSocketServerExtensionHandler to handle the most common WebSocket Compression Extensions. -
Uses of ChannelDuplexHandler in io.netty.handler.codec.http2
Subclasses of ChannelDuplexHandler in io.netty.handler.codec.http2 Modifier and Type Class Description classHttp2ChannelDuplexHandlerAChannelDuplexHandlerproviding additional functionality for HTTP/2.classHttp2MultiplexHandlerAn HTTP/2 handler that creates child channels for each stream.classHttp2StreamFrameToHttpObjectCodecThis handler converts fromHttp2StreamFrametoHttpObject, and back. -
Uses of ChannelDuplexHandler in io.netty.handler.codec.memcache.binary
Subclasses of ChannelDuplexHandler in io.netty.handler.codec.memcache.binary Modifier and Type Class Description classBinaryMemcacheClientCodecThe client codec that combines the proper encoder and decoder.classBinaryMemcacheServerCodecThe full server codec that combines the correct encoder and decoder. -
Uses of ChannelDuplexHandler in io.netty.handler.codec.spdy
Subclasses of ChannelDuplexHandler in io.netty.handler.codec.spdy Modifier and Type Class Description classSpdyHttpCodecA combination ofSpdyHttpDecoderandSpdyHttpEncoderclassSpdyHttpResponseStreamIdHandlerMessageToMessageCodecthat takes care of adding the rightSpdyHttpHeaders.Names.STREAM_IDto theHttpMessageif one is not present.classSpdySessionHandlerManages streams within a SPDY session. -
Uses of ChannelDuplexHandler in io.netty.handler.flow
Subclasses of ChannelDuplexHandler in io.netty.handler.flow Modifier and Type Class Description classFlowControlHandlerTheFlowControlHandlerensures that only one message perread()is sent downstream. -
Uses of ChannelDuplexHandler in io.netty.handler.flush
Subclasses of ChannelDuplexHandler in io.netty.handler.flush Modifier and Type Class Description classFlushConsolidationHandlerChannelDuplexHandlerwhich consolidatesChannel.flush()/ChannelHandlerContext.flush()operations (which also includesChannel.writeAndFlush(Object)/Channel.writeAndFlush(Object, ChannelPromise)andChannelOutboundInvoker.writeAndFlush(Object)/ChannelOutboundInvoker.writeAndFlush(Object, ChannelPromise)). -
Uses of ChannelDuplexHandler in io.netty.handler.logging
Subclasses of ChannelDuplexHandler in io.netty.handler.logging Modifier and Type Class Description classLoggingHandlerAChannelHandlerthat logs all events using a logging framework. -
Uses of ChannelDuplexHandler in io.netty.handler.pcap
Subclasses of ChannelDuplexHandler in io.netty.handler.pcap Modifier and Type Class Description classPcapWriteHandlerPcapWriteHandlercapturesByteBuffromSocketChannel/ServerChannelorDatagramPacketand writes it into PcapOutputStream. -
Uses of ChannelDuplexHandler in io.netty.handler.proxy
Subclasses of ChannelDuplexHandler in io.netty.handler.proxy Modifier and Type Class Description classHttpProxyHandlerHandler that establishes a blind forwarding proxy tunnel using HTTP/1.1 CONNECT request.classProxyHandlerA common abstraction for protocols that establish blind forwarding proxy tunnels.classSocks4ProxyHandlerHandler that establishes a blind forwarding proxy tunnel using SOCKS4 protocol.classSocks5ProxyHandlerHandler that establishes a blind forwarding proxy tunnel using SOCKS Protocol Version 5. -
Uses of ChannelDuplexHandler in io.netty.handler.stream
Subclasses of ChannelDuplexHandler in io.netty.handler.stream Modifier and Type Class Description classChunkedWriteHandlerAChannelHandlerthat adds support for writing a large data stream asynchronously neither spending a lot of memory nor gettingOutOfMemoryError. -
Uses of ChannelDuplexHandler in io.netty.handler.timeout
Subclasses of ChannelDuplexHandler in io.netty.handler.timeout Modifier and Type Class Description classIdleStateHandlerTriggers anIdleStateEventwhen aChannelhas not performed read, write, or both operation for a while.classReadTimeoutHandlerRaises aReadTimeoutExceptionwhen no data was read within a certain period of time. -
Uses of ChannelDuplexHandler in io.netty.handler.traffic
Subclasses of ChannelDuplexHandler in io.netty.handler.traffic Modifier and Type Class Description classAbstractTrafficShapingHandlerAbstractTrafficShapingHandler allows to limit the global bandwidth (seeGlobalTrafficShapingHandler) or per session bandwidth (seeChannelTrafficShapingHandler), as traffic shaping.classChannelTrafficShapingHandlerThis implementation of theAbstractTrafficShapingHandleris for channel traffic shaping, that is to say a per channel limitation of the bandwidth.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.
-