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 class
CombinedChannelDuplexHandler<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 class
ByteToMessageCodec<I>
A Codec for on-the-fly encoding/decoding of bytes to messages and vise-versa.class
MessageToMessageCodec<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 class
HttpClientCodec
A combination ofHttpRequestEncoder
andHttpResponseDecoder
which enables easier client side HTTP implementation.class
HttpContentCompressor
Compresses anHttpMessage
and anHttpContent
ingzip
ordeflate
encoding while respecting the"Accept-Encoding"
header.class
HttpContentEncoder
Encodes the content of the outboundHttpResponse
andHttpContent
.class
HttpServerCodec
A combination ofHttpRequestDecoder
andHttpResponseEncoder
which enables easier server side HTTP implementation.class
HttpServerKeepAliveHandler
HttpServerKeepAliveHandler 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 class
CorsHandler
Handles 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 class
WebSocketClientExtensionHandler
This handler negotiates and initializes the WebSocket Extensions.class
WebSocketServerExtensionHandler
This 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 class
WebSocketClientCompressionHandler
Extends io.netty.handler.codec.http.websocketx.extensions.compression.WebSocketClientExtensionHandler to handle the most common WebSocket Compression Extensions.class
WebSocketServerCompressionHandler
Extends 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 class
Http2ChannelDuplexHandler
AChannelDuplexHandler
providing additional functionality for HTTP/2.class
Http2MultiplexHandler
An HTTP/2 handler that creates child channels for each stream.class
Http2StreamFrameToHttpObjectCodec
This handler converts fromHttp2StreamFrame
toHttpObject
, 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 class
BinaryMemcacheClientCodec
The client codec that combines the proper encoder and decoder.class
BinaryMemcacheServerCodec
The 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 class
SpdyHttpCodec
A combination ofSpdyHttpDecoder
andSpdyHttpEncoder
class
SpdyHttpResponseStreamIdHandler
MessageToMessageCodec
that takes care of adding the rightSpdyHttpHeaders.Names.STREAM_ID
to theHttpMessage
if one is not present.class
SpdySessionHandler
Manages 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 class
FlowControlHandler
TheFlowControlHandler
ensures 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 class
FlushConsolidationHandler
ChannelDuplexHandler
which 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 class
LoggingHandler
AChannelHandler
that 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 class
PcapWriteHandler
PcapWriteHandler
capturesByteBuf
fromSocketChannel
/ServerChannel
orDatagramPacket
and 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 class
HttpProxyHandler
Handler that establishes a blind forwarding proxy tunnel using HTTP/1.1 CONNECT request.class
ProxyHandler
A common abstraction for protocols that establish blind forwarding proxy tunnels.class
Socks4ProxyHandler
Handler that establishes a blind forwarding proxy tunnel using SOCKS4 protocol.class
Socks5ProxyHandler
Handler 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 class
ChunkedWriteHandler
AChannelHandler
that 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 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. -
Uses of ChannelDuplexHandler in io.netty.handler.traffic
Subclasses of ChannelDuplexHandler in io.netty.handler.traffic Modifier and Type Class Description class
AbstractTrafficShapingHandler
AbstractTrafficShapingHandler allows to limit the global bandwidth (seeGlobalTrafficShapingHandler
) or per session bandwidth (seeChannelTrafficShapingHandler
), as traffic shaping.class
ChannelTrafficShapingHandler
This implementation of theAbstractTrafficShapingHandler
is for channel traffic shaping, that is to say a per channel limitation of the bandwidth.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.
-