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.base64 | |
io.netty.handler.codec.bytes |
Encoder and decoder which transform an array of bytes into a
ByteBuf and vice versa. |
io.netty.handler.codec.compression | |
io.netty.handler.codec.dns |
DNS codec.
|
io.netty.handler.codec.json |
JSON specific codecs.
|
io.netty.handler.codec.memcache |
Common superset of ascii and binary classes.
|
io.netty.handler.codec.memcache.binary |
Implementations and Interfaces for the Memcache Binary protocol.
|
io.netty.handler.codec.mqtt |
Encoder, decoder and different Message Types for MQTT.
|
io.netty.handler.codec.redis |
Encoder, decoder for Redis.
|
io.netty.handler.codec.serialization |
Encoder, decoder and their compatibility stream implementations which
transform a
Serializable object into a byte buffer and
vice versa. |
io.netty.handler.codec.smtp |
SMTP codec.
|
io.netty.handler.codec.stomp |
STOMP codec
|
io.netty.handler.codec.string | |
io.netty.handler.codec.xml |
Xml specific codecs.
|
io.netty.handler.flow |
Package to control the flow of messages.
|
io.netty.handler.flush |
Package to control flush behavior.
|
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.ssl | |
io.netty.handler.stream |
Writes very large data stream asynchronously neither spending a lot of
memory nor getting
OutOfMemoryError . |
io.netty.handler.timeout |
Adds support for read and write timeout and idle connection notification
using a
Timer . |
io.netty.handler.traffic |
Implementation of a Traffic Shaping Handler and Dynamic Statistics.
|
Modifier and Type | Class and Description |
---|---|
class |
ChannelDuplexHandler
ChannelHandler implementation which represents a combination out of a ChannelInboundHandler and
the ChannelOutboundHandler . |
class |
ChannelInboundHandlerAdapter
Abstract base class for
ChannelInboundHandler implementations which provide
implementations of all of their methods. |
class |
ChannelInitializer<C extends Channel>
A special
ChannelInboundHandler which offers an easy way to initialize a Channel once it was
registered to its EventLoop . |
class |
ChannelOutboundHandlerAdapter
Skeleton implementation of a
ChannelOutboundHandler . |
class |
CombinedChannelDuplexHandler<I extends ChannelInboundHandler,O extends ChannelOutboundHandler>
|
class |
SimpleChannelInboundHandler<I>
ChannelInboundHandlerAdapter which allows to explicit only handle a specific type of messages. |
Modifier and Type | Class and Description |
---|---|
class |
ByteToMessageCodec<I>
A Codec for on-the-fly encoding/decoding of bytes to messages and vise-versa.
|
class |
ByteToMessageDecoder
ChannelInboundHandlerAdapter which decodes bytes in a stream-like fashion from one ByteBuf to an
other Message type. |
class |
DatagramPacketDecoder
A decoder that decodes the content of the received
DatagramPacket using
the specified ByteBuf decoder. |
class |
DatagramPacketEncoder<M>
An encoder that encodes the content in
AddressedEnvelope to DatagramPacket using
the specified message encoder. |
class |
DelimiterBasedFrameDecoder
A decoder that splits the received
ByteBuf s by one or more
delimiters. |
class |
FixedLengthFrameDecoder
A decoder that splits the received
ByteBuf s by the fixed number
of bytes. |
class |
LengthFieldBasedFrameDecoder
A decoder that splits the received
ByteBuf s dynamically by the
value of the length field in the message. |
class |
LengthFieldPrepender
An encoder that prepends the length of the message.
|
class |
LineBasedFrameDecoder
A decoder that splits the received
ByteBuf s on line endings. |
class |
MessageAggregator<I,S,C extends ByteBufHolder,O extends ByteBufHolder>
An abstract
ChannelHandler that aggregates a series of message objects into a single aggregated message. |
class |
MessageToByteEncoder<I>
ChannelOutboundHandlerAdapter which encodes message in a stream-like fashion from one message to an
ByteBuf . |
class |
MessageToMessageCodec<INBOUND_IN,OUTBOUND_IN>
A Codec for on-the-fly encoding/decoding of message.
|
class |
MessageToMessageDecoder<I>
ChannelInboundHandlerAdapter which decodes from one message to an other message. |
class |
MessageToMessageEncoder<I>
ChannelOutboundHandlerAdapter which encodes from one message to an other message
For example here is an implementation which decodes an Integer to an String . |
class |
ReplayingDecoder<S>
A specialized variation of
ByteToMessageDecoder which enables implementation
of a non-blocking decoder in the blocking I/O paradigm. |
Modifier and Type | Class and Description |
---|---|
class |
Base64Decoder
|
class |
Base64Encoder
|
Modifier and Type | Class and Description |
---|---|
class |
ByteArrayDecoder
Decodes a received
ByteBuf into an array of bytes. |
class |
ByteArrayEncoder
Encodes the requested array of bytes into a
ByteBuf . |
Modifier and Type | Class and Description |
---|---|
class |
Bzip2Decoder
Uncompresses a
ByteBuf encoded with the Bzip2 format. |
class |
Bzip2Encoder
Compresses a
ByteBuf using the Bzip2 algorithm. |
class |
FastLzFrameDecoder
Uncompresses a
ByteBuf encoded by FastLzFrameEncoder using the FastLZ algorithm. |
class |
FastLzFrameEncoder
Compresses a
ByteBuf using the FastLZ algorithm. |
class |
JdkZlibDecoder
Decompress a
ByteBuf using the inflate algorithm. |
class |
JdkZlibEncoder
Compresses a
ByteBuf using the deflate algorithm. |
class |
JZlibDecoder |
class |
JZlibEncoder
Compresses a
ByteBuf using the deflate algorithm. |
class |
SnappyFramedDecoder
Deprecated.
Use
SnappyFrameDecoder instead. |
class |
SnappyFrameDecoder
Uncompresses a
ByteBuf encoded with the Snappy framing format. |
class |
SnappyFramedEncoder
Deprecated.
Use
SnappyFrameEncoder instead. |
class |
SnappyFrameEncoder
Compresses a
ByteBuf using the Snappy framing format. |
class |
ZlibDecoder
Decompresses a
ByteBuf using the deflate algorithm. |
class |
ZlibEncoder
Compresses a
ByteBuf using the deflate algorithm. |
Modifier and Type | Class and Description |
---|---|
class |
DatagramDnsQueryDecoder
Decodes a
DatagramPacket into a DatagramDnsQuery . |
class |
DatagramDnsQueryEncoder
|
class |
DatagramDnsResponseDecoder
Decodes a
DatagramPacket into a DatagramDnsResponse . |
class |
DatagramDnsResponseEncoder
|
Modifier and Type | Class and Description |
---|---|
class |
JsonObjectDecoder
Splits a byte stream of JSON objects and arrays into individual objects/arrays and passes them up the
ChannelPipeline . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractMemcacheObjectAggregator<H extends MemcacheMessage>
A
ChannelHandler that aggregates an MemcacheMessage
and its following MemcacheContent s into a single MemcacheMessage with
no following MemcacheContent s. |
class |
AbstractMemcacheObjectDecoder
Abstract super class for both ascii and binary decoders.
|
class |
AbstractMemcacheObjectEncoder<M extends MemcacheMessage>
A general purpose
AbstractMemcacheObjectEncoder that encodes MemcacheMessage s. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractBinaryMemcacheDecoder<M extends BinaryMemcacheMessage>
Decoder for both
BinaryMemcacheRequest and BinaryMemcacheResponse . |
class |
AbstractBinaryMemcacheEncoder<M extends BinaryMemcacheMessage>
A
MessageToByteEncoder that encodes binary memcache messages into bytes. |
class |
BinaryMemcacheClientCodec
The client codec that combines the proper encoder and decoder.
|
class |
BinaryMemcacheObjectAggregator
An object aggregator for the memcache binary protocol.
|
class |
BinaryMemcacheRequestDecoder
The decoder part which takes care of decoding the request-specific headers.
|
class |
BinaryMemcacheRequestEncoder
The encoder part which takes care of encoding the request headers.
|
class |
BinaryMemcacheResponseDecoder
The decoder which takes care of decoding the response headers.
|
class |
BinaryMemcacheResponseEncoder
The encoder which takes care of encoding the response headers.
|
class |
BinaryMemcacheServerCodec
The full server codec that combines the correct encoder and decoder.
|
Modifier and Type | Class and Description |
---|---|
class |
MqttDecoder
Decodes Mqtt messages from bytes, following
the MQTT protocol specification v3.1
|
class |
MqttEncoder
Encodes Mqtt messages into bytes following the protocol specification v3.1
as described here MQTTV3.1
|
Modifier and Type | Class and Description |
---|---|
class |
RedisArrayAggregator
Aggregates
RedisMessage parts into ArrayRedisMessage . |
class |
RedisBulkStringAggregator
A
ChannelHandler that aggregates an BulkStringHeaderRedisMessage
and its following BulkStringRedisContent s into a single FullBulkStringRedisMessage
with no following BulkStringRedisContent s. |
class |
RedisDecoder
Decodes the Redis protocol into
RedisMessage objects following
RESP (REdis Serialization Protocol). |
class |
RedisEncoder
Encodes
RedisMessage into bytes following
RESP (REdis Serialization Protocol). |
Modifier and Type | Class and Description |
---|---|
class |
CompatibleObjectEncoder
An encoder which serializes a Java object into a
ByteBuf
(interoperability version). |
class |
ObjectDecoder
A decoder which deserializes the received
ByteBuf s into Java
objects. |
class |
ObjectEncoder
An encoder which serializes a Java object into a
ByteBuf . |
Modifier and Type | Class and Description |
---|---|
class |
SmtpRequestEncoder
Encoder for SMTP requests.
|
class |
SmtpResponseDecoder
Decoder for SMTP responses.
|
Modifier and Type | Class and Description |
---|---|
class |
StompSubframeAggregator
A
ChannelHandler that aggregates an StompHeadersSubframe
and its following StompContentSubframe s into a single StompFrame . |
class |
StompSubframeDecoder
|
class |
StompSubframeEncoder
|
Modifier and Type | Class and Description |
---|---|
class |
LineEncoder
|
class |
StringDecoder
|
class |
StringEncoder
|
Modifier and Type | Class and Description |
---|---|
class |
XmlFrameDecoder
A frame decoder for single separate XML based message streams.
|
Modifier and Type | Class and Description |
---|---|
class |
FlowControlHandler
The
FlowControlHandler ensures that only one message per read() is sent downstream. |
Modifier and Type | Class and Description |
---|---|
class |
FlushConsolidationHandler
ChannelDuplexHandler which consolidates Channel.flush() / ChannelHandlerContext.flush()
operations (which also includes
ChannelOutboundInvoker.writeAndFlush(Object) / ChannelOutboundInvoker.writeAndFlush(Object, ChannelPromise) and
ChannelOutboundInvoker.writeAndFlush(Object) /
ChannelOutboundInvoker.writeAndFlush(Object, ChannelPromise) ). |
Modifier and Type | Class and Description |
---|---|
class |
AbstractRemoteAddressFilter<T extends SocketAddress>
This class provides the functionality to either accept or reject new
Channel s
based on their IP address. |
class |
RuleBasedIpFilter
This class allows one to filter new
Channel s based on the
IpFilterRule 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 one
Channel connected to the server. |
Modifier and Type | Class and Description |
---|---|
class |
LoggingHandler
A
ChannelHandler that logs all events using a logging framework. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractSniHandler<T>
Enables SNI
(Server Name Indication) extension for server side SSL.
|
class |
ApplicationProtocolNegotiationHandler
Configures a
ChannelPipeline depending on the application-level protocol negotiation result of
SslHandler . |
class |
OptionalSslHandler
OptionalSslHandler is a utility decoder to support both SSL and non-SSL handlers
based on the first message received. |
class |
SniHandler
Enables SNI
(Server Name Indication) extension for server side SSL.
|
class |
SslHandler
|
Modifier and Type | Class and Description |
---|---|
class |
ChunkedWriteHandler
A
ChannelHandler that adds support for writing a large data stream
asynchronously neither spending a lot of memory nor getting
OutOfMemoryError . |
Modifier and Type | Class and Description |
---|---|
class |
IdleStateHandler
Triggers an
IdleStateEvent when a Channel has not performed
read, write, or both operation for a while. |
class |
ReadTimeoutHandler
Raises a
ReadTimeoutException when no data was read within a certain
period of time. |
class |
WriteTimeoutHandler
Raises a
WriteTimeoutException when a write operation cannot finish in a certain period of time. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractTrafficShapingHandler
AbstractTrafficShapingHandler allows to limit the global bandwidth
(see
GlobalTrafficShapingHandler ) or per session
bandwidth (see ChannelTrafficShapingHandler ), as traffic shaping. |
class |
ChannelTrafficShapingHandler
This implementation of the
AbstractTrafficShapingHandler is for channel
traffic shaping, that is to say a per channel limitation of the bandwidth. |
class |
GlobalChannelTrafficShapingHandler
This implementation of the
AbstractTrafficShapingHandler 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 the
AbstractTrafficShapingHandler is for global
traffic shaping, that is to say a global limitation of the bandwidth, whatever
the number of opened channels. |
Copyright © 2008-2017 The Netty Project. All Rights Reserved.