程序包 | 说明 |
---|---|
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).
|
限定符和类型 | 方法和说明 |
---|---|
ChannelFactory |
Bootstrap.getFactory()
Returns the
ChannelFactory that will be used to perform an
I/O operation. |
限定符和类型 | 方法和说明 |
---|---|
void |
ServerBootstrap.setFactory(ChannelFactory factory)
Sets the
ServerChannelFactory that will be used to perform an I/O
operation. |
void |
Bootstrap.setFactory(ChannelFactory factory)
Sets the
ChannelFactory that will be used to perform an I/O
operation. |
构造器和说明 |
---|
Bootstrap(ChannelFactory channelFactory)
Creates a new instance with the specified initial
ChannelFactory . |
ClientBootstrap(ChannelFactory channelFactory)
Creates a new instance with the specified initial
ChannelFactory . |
ConnectionlessBootstrap(ChannelFactory channelFactory)
Creates a new instance with the specified initial
ChannelFactory . |
ServerBootstrap(ChannelFactory channelFactory)
Creates a new instance with the specified initial
ChannelFactory . |
限定符和类型 | 接口和说明 |
---|---|
interface |
ServerChannelFactory
A
ChannelFactory that creates a ServerChannel . |
限定符和类型 | 方法和说明 |
---|---|
ChannelFactory |
Channel.getFactory()
Returns the
ChannelFactory which created this channel. |
ChannelFactory |
AbstractChannel.getFactory() |
构造器和说明 |
---|
AbstractChannel(Channel parent,
ChannelFactory factory,
ChannelPipeline pipeline,
ChannelSink sink)
Creates a new instance.
|
AbstractChannel(java.lang.Integer id,
Channel parent,
ChannelFactory factory,
ChannelPipeline pipeline,
ChannelSink sink)
(Internal use only) Creates a new temporary instance with the specified
ID.
|
AbstractServerChannel(ChannelFactory factory,
ChannelPipeline pipeline,
ChannelSink sink)
Creates a new instance.
|
限定符和类型 | 接口和说明 |
---|---|
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 . |
限定符和类型 | 方法和说明 |
---|---|
protected ChannelFactory |
HttpTunnelingServlet.createChannelFactory(java.net.SocketAddress remoteAddress) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
HttpTunnelingServlet.destroyChannelFactory(ChannelFactory factory) |
限定符和类型 | 类和说明 |
---|---|
class |
NioClientSocketChannelFactory
A
ClientSocketChannelFactory which creates a client-side NIO-based
SocketChannel . |
class |
NioDatagramChannelFactory
A
DatagramChannelFactory that creates a NIO-based connectionless
DatagramChannel . |
class |
NioServerSocketChannelFactory
A
ServerSocketChannelFactory which creates a server-side NIO-based
ServerSocketChannel . |
构造器和说明 |
---|
NioSocketChannel(Channel parent,
ChannelFactory factory,
ChannelPipeline pipeline,
ChannelSink sink,
java.nio.channels.SocketChannel socket,
NioWorker worker) |
限定符和类型 | 类和说明 |
---|---|
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 . |