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.codec.embedder |
A helper that wraps an encoder or a decoder so that they can be used without
doing actual I/O in unit tests or higher level codecs.
|
Modifier and Type | Method and Description |
---|---|
ChannelPipeline |
Bootstrap.getPipeline()
Returns the default
ChannelPipeline which is cloned when a new
Channel is created. |
Modifier and Type | Method and Description |
---|---|
void |
Bootstrap.setPipeline(ChannelPipeline pipeline)
Sets the default
ChannelPipeline which is cloned when a new
Channel is created. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultChannelPipeline
The default
ChannelPipeline implementation. |
class |
StaticChannelPipeline
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ChannelPipeline |
ChannelPipelineFactory.getPipeline()
Returns a newly created
ChannelPipeline . |
ChannelPipeline |
ChannelHandlerContext.getPipeline()
Returns the
ChannelPipeline that the ChannelHandler
belongs to. |
ChannelPipeline |
Channel.getPipeline()
Returns the
ChannelPipeline which handles ChannelEvent s
associated with this channel. |
ChannelPipeline |
AbstractChannel.getPipeline() |
static ChannelPipeline |
Channels.pipeline()
Creates a new
ChannelPipeline . |
static ChannelPipeline |
Channels.pipeline(ChannelHandler... handlers)
Creates a new
ChannelPipeline which contains the specified
ChannelHandler s. |
static ChannelPipeline |
Channels.pipeline(ChannelPipeline pipeline)
Creates a new
ChannelPipeline which contains the same entries
with the specified pipeline . |
Modifier and Type | Method and Description |
---|---|
void |
ChannelSink.eventSunk(ChannelPipeline pipeline,
ChannelEvent e)
Invoked by
ChannelPipeline when a downstream ChannelEvent
has reached its terminal (the head of the pipeline). |
void |
ChannelSink.exceptionCaught(ChannelPipeline pipeline,
ChannelEvent e,
ChannelPipelineException cause)
Invoked by
ChannelPipeline when an exception was raised while
one of its ChannelHandler s process a ChannelEvent . |
void |
AbstractChannelSink.exceptionCaught(ChannelPipeline pipeline,
ChannelEvent event,
ChannelPipelineException cause)
Sends an
ExceptionEvent upstream with the specified
cause . |
ChannelFuture |
ChannelSink.execute(ChannelPipeline pipeline,
Runnable task)
Execute the given
Runnable later in the io-thread. |
ChannelFuture |
AbstractChannelSink.execute(ChannelPipeline pipeline,
Runnable task)
This implementation just directly call
Runnable.run() . |
ServerChannel |
ServerChannelFactory.newChannel(ChannelPipeline pipeline) |
Channel |
ChannelFactory.newChannel(ChannelPipeline pipeline)
|
static ChannelPipeline |
Channels.pipeline(ChannelPipeline pipeline)
Creates a new
ChannelPipeline which contains the same entries
with the specified pipeline . |
static ChannelPipelineFactory |
Channels.pipelineFactory(ChannelPipeline pipeline)
Creates a new
ChannelPipelineFactory which creates a new
ChannelPipeline which contains the same entries with the
specified pipeline . |
Constructor and Description |
---|
AbstractChannel(Channel parent,
ChannelFactory factory,
ChannelPipeline pipeline,
ChannelSink sink)
Creates a new instance.
|
AbstractChannel(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.
|
Modifier and Type | Method and Description |
---|---|
LocalServerChannel |
LocalServerChannelFactory.newChannel(ChannelPipeline pipeline) |
LocalChannel |
LocalClientChannelFactory.newChannel(ChannelPipeline pipeline) |
LocalServerChannel |
DefaultLocalServerChannelFactory.newChannel(ChannelPipeline pipeline) |
LocalChannel |
DefaultLocalClientChannelFactory.newChannel(ChannelPipeline pipeline) |
Modifier and Type | Method and Description |
---|---|
ServerSocketChannel |
ServerSocketChannelFactory.newChannel(ChannelPipeline pipeline) |
DatagramChannel |
DatagramChannelFactory.newChannel(ChannelPipeline pipeline) |
SocketChannel |
ClientSocketChannelFactory.newChannel(ChannelPipeline pipeline) |
Modifier and Type | Method and Description |
---|---|
SocketChannel |
HttpTunnelingClientSocketChannelFactory.newChannel(ChannelPipeline pipeline) |
Modifier and Type | Method and Description |
---|---|
ChannelFuture |
AbstractNioChannelSink.execute(ChannelPipeline pipeline,
Runnable task) |
ServerSocketChannel |
NioServerSocketChannelFactory.newChannel(ChannelPipeline pipeline) |
DatagramChannel |
NioDatagramChannelFactory.newChannel(ChannelPipeline pipeline) |
SocketChannel |
NioClientSocketChannelFactory.newChannel(ChannelPipeline pipeline) |
Constructor and Description |
---|
NioSocketChannel(Channel parent,
ChannelFactory factory,
ChannelPipeline pipeline,
ChannelSink sink,
SocketChannel socket,
NioWorker worker) |
Modifier and Type | Method and Description |
---|---|
ChannelFuture |
AbstractOioChannelSink.execute(ChannelPipeline pipeline,
Runnable task) |
ServerSocketChannel |
OioServerSocketChannelFactory.newChannel(ChannelPipeline pipeline) |
DatagramChannel |
OioDatagramChannelFactory.newChannel(ChannelPipeline pipeline) |
SocketChannel |
OioClientSocketChannelFactory.newChannel(ChannelPipeline pipeline) |
Modifier and Type | Method and Description |
---|---|
ChannelPipeline |
CodecEmbedder.getPipeline()
Returns the
ChannelPipeline that handles the input. |
Copyright © 2008-2015 The Netty Project. All Rights Reserved.