Package | Description |
---|---|
org.jboss.netty.bootstrap |
IoC/DI friendly helper classes which enable an easy implementation of
typical client side and server side channel initialization.
|
org.jboss.netty.channel |
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
|
org.jboss.netty.channel.local |
A virtual transport that enables the communication between the two
parties in the same virtual machine.
|
org.jboss.netty.channel.socket |
Abstract TCP and UDP socket interfaces which extend the core channel API.
|
org.jboss.netty.channel.socket.http |
An HTTP-based client-side
SocketChannel
and its corresponding server-side Servlet implementation that make your
existing server application work in a firewalled network. |
org.jboss.netty.channel.socket.nio |
NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
|
org.jboss.netty.channel.socket.oio |
Old blocking I/O based socket channel API implementation - recommended for
a small number of connections (< 1000).
|
org.jboss.netty.handler.execution |
Executor -based implementation of various
thread models that separate business logic from I/O threads |
org.jboss.netty.handler.timeout |
Adds support for read and write timeout and idle connection notification
using a
Timer . |
org.jboss.netty.handler.traffic |
Implementation of a Traffic Shaping Handler and Dynamic Statistics.
|
org.jboss.netty.util |
Utility classes used across multiple packages.
|
Modifier and Type | Class and Description |
---|---|
class |
Bootstrap
A helper class which initializes a
Channel . |
class |
ClientBootstrap
A helper class which creates a new client-side
Channel and makes a
connection attempt. |
class |
ConnectionlessBootstrap
A helper class which creates a new server-side
Channel for a
connectionless transport. |
class |
ServerBootstrap
A helper class which creates a new server-side
Channel and accepts
incoming connections. |
Modifier and Type | Interface and Description |
---|---|
interface |
ChannelFactory
The main interface to a transport that creates a
Channel associated
with a certain communication entity such as a network socket. |
interface |
FileRegion
A region of a file that is sent via a
Channel which supports
zero-copy file transfer. |
interface |
ServerChannelFactory
A
ChannelFactory that creates a ServerChannel . |
Modifier and Type | Class and Description |
---|---|
class |
DefaultFileRegion |
Modifier and Type | Interface and Description |
---|---|
interface |
LocalClientChannelFactory
A
ChannelFactory that creates a client-side LocalChannel . |
interface |
LocalServerChannelFactory
A
ServerChannelFactory that creates a LocalServerChannel . |
Modifier and Type | Class and Description |
---|---|
class |
DefaultLocalClientChannelFactory
The default
LocalClientChannelFactory implementation. |
class |
DefaultLocalServerChannelFactory
The default
LocalServerChannelFactory implementation. |
Modifier and Type | Interface and Description |
---|---|
interface |
ClientSocketChannelFactory
A
ChannelFactory which creates a client-side SocketChannel . |
interface |
DatagramChannelFactory
A
ChannelFactory which creates a DatagramChannel . |
interface |
ServerSocketChannelFactory
A
ChannelFactory which creates a ServerSocketChannel . |
Modifier and Type | Class and Description |
---|---|
class |
HttpTunnelingClientSocketChannelFactory
Creates a client-side
SocketChannel which connects to an
HttpTunnelingServlet to communicate with the server application
behind the HttpTunnelingServlet . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractNioBossPool<E extends Boss> |
class |
AbstractNioWorkerPool<E extends org.jboss.netty.channel.socket.nio.AbstractNioWorker>
Abstract base class for
WorkerPool implementations that create the Worker 's
up-front and return them in a "fair" fashion when calling AbstractNioWorkerPool.nextWorker() |
class |
NioClientBossPool
Holds
NioClientBoss instances to use |
class |
NioClientSocketChannelFactory
A
ClientSocketChannelFactory which creates a client-side NIO-based
SocketChannel . |
class |
NioDatagramChannelFactory
A
DatagramChannelFactory that creates a NIO-based connectionless
DatagramChannel . |
class |
NioDatagramWorkerPool
Default implementation which hands of
NioDatagramWorker 's |
class |
NioServerBossPool
Holds
NioServerBoss instances to use |
class |
NioServerSocketChannelFactory
A
ServerSocketChannelFactory which creates a server-side NIO-based
ServerSocketChannel . |
class |
NioWorkerPool
Default implementation which hands of
NioWorker 's |
Modifier and Type | Class and Description |
---|---|
class |
OioClientSocketChannelFactory
A
ClientSocketChannelFactory which creates a client-side blocking
I/O based SocketChannel . |
class |
OioDatagramChannelFactory
A
DatagramChannelFactory which creates a blocking I/O based
DatagramChannel . |
class |
OioServerSocketChannelFactory
A
ServerSocketChannelFactory which creates a server-side blocking
I/O based ServerSocketChannel . |
Modifier and Type | Class and Description |
---|---|
class |
ChainedExecutor
|
class |
ExecutionHandler
Forwards an upstream
ChannelEvent to an Executor . |
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 no data was written within 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. |
Modifier and Type | Method and Description |
---|---|
static void |
ExternalResourceUtil.release(ExternalResourceReleasable... releasables)
Releases the specified
ExternalResourceReleasable s. |
Copyright © 2008–2018 The Netty Project. All rights reserved.