程序包 | 说明 |
---|---|
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.
|
限定符和类型 | 类和说明 |
---|---|
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. |
限定符和类型 | 接口和说明 |
---|---|
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 . |
限定符和类型 | 类和说明 |
---|---|
class |
DefaultFileRegion |
限定符和类型 | 接口和说明 |
---|---|
interface |
LocalClientChannelFactory
A
ChannelFactory that creates a client-side LocalChannel . |
interface |
LocalServerChannelFactory
A
ServerChannelFactory that creates a LocalServerChannel . |
限定符和类型 | 类和说明 |
---|---|
class |
DefaultLocalClientChannelFactory
The default
LocalClientChannelFactory implementation. |
class |
DefaultLocalServerChannelFactory
The default
LocalServerChannelFactory implementation. |
限定符和类型 | 接口和说明 |
---|---|
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 . |
限定符和类型 | 类和说明 |
---|---|
class |
HttpTunnelingClientSocketChannelFactory
Creates a client-side
SocketChannel which connects to an
HttpTunnelingServlet to communicate with the server application
behind the HttpTunnelingServlet . |
限定符和类型 | 类和说明 |
---|---|
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 |
限定符和类型 | 类和说明 |
---|---|
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 . |
限定符和类型 | 类和说明 |
---|---|
class |
ChainedExecutor
|
class |
ExecutionHandler
Forwards an upstream
ChannelEvent to an Executor . |
限定符和类型 | 类和说明 |
---|---|
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. |
限定符和类型 | 类和说明 |
---|---|
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. |
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. |
限定符和类型 | 方法和说明 |
---|---|
static void |
ExternalResourceUtil.release(ExternalResourceReleasable... releasables)
Releases the specified
ExternalResourceReleasable s. |