Uses of Interface
org.jboss.netty.util.ExternalResourceReleasable
-
Packages that use ExternalResourceReleasable 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-sideSocketChannel
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 threadsorg.jboss.netty.handler.timeout Adds support for read and write timeout and idle connection notification using aTimer
.org.jboss.netty.handler.traffic Implementation of a Traffic Shaping Handler and Dynamic Statistics.
org.jboss.netty.util Utility classes used across multiple packages. -
-
Uses of ExternalResourceReleasable in org.jboss.netty.bootstrap
Classes in org.jboss.netty.bootstrap that implement ExternalResourceReleasable Modifier and Type Class Description class
Bootstrap
A helper class which initializes aChannel
.class
ClientBootstrap
A helper class which creates a new client-sideChannel
and makes a connection attempt.class
ConnectionlessBootstrap
A helper class which creates a new server-sideChannel
for a connectionless transport.class
ServerBootstrap
A helper class which creates a new server-sideChannel
and accepts incoming connections. -
Uses of ExternalResourceReleasable in org.jboss.netty.channel
Subinterfaces of ExternalResourceReleasable in org.jboss.netty.channel Modifier and Type Interface Description interface
ChannelFactory
The main interface to a transport that creates aChannel
associated with a certain communication entity such as a network socket.interface
FileRegion
A region of a file that is sent via aChannel
which supports zero-copy file transfer.interface
ServerChannelFactory
AChannelFactory
that creates aServerChannel
.Classes in org.jboss.netty.channel that implement ExternalResourceReleasable Modifier and Type Class Description class
DefaultFileRegion
-
Uses of ExternalResourceReleasable in org.jboss.netty.channel.local
Subinterfaces of ExternalResourceReleasable in org.jboss.netty.channel.local Modifier and Type Interface Description interface
LocalClientChannelFactory
AChannelFactory
that creates a client-sideLocalChannel
.interface
LocalServerChannelFactory
AServerChannelFactory
that creates aLocalServerChannel
.Classes in org.jboss.netty.channel.local that implement ExternalResourceReleasable Modifier and Type Class Description class
DefaultLocalClientChannelFactory
The defaultLocalClientChannelFactory
implementation.class
DefaultLocalServerChannelFactory
The defaultLocalServerChannelFactory
implementation. -
Uses of ExternalResourceReleasable in org.jboss.netty.channel.socket
Subinterfaces of ExternalResourceReleasable in org.jboss.netty.channel.socket Modifier and Type Interface Description interface
ClientSocketChannelFactory
AChannelFactory
which creates a client-sideSocketChannel
.interface
DatagramChannelFactory
AChannelFactory
which creates aDatagramChannel
.interface
ServerSocketChannelFactory
AChannelFactory
which creates aServerSocketChannel
. -
Uses of ExternalResourceReleasable in org.jboss.netty.channel.socket.http
Classes in org.jboss.netty.channel.socket.http that implement ExternalResourceReleasable Modifier and Type Class Description class
HttpTunnelingClientSocketChannelFactory
Creates a client-sideSocketChannel
which connects to anHttpTunnelingServlet
to communicate with the server application behind theHttpTunnelingServlet
. -
Uses of ExternalResourceReleasable in org.jboss.netty.channel.socket.nio
Classes in org.jboss.netty.channel.socket.nio that implement ExternalResourceReleasable Modifier and Type Class Description class
AbstractNioBossPool<E extends Boss>
class
AbstractNioWorkerPool<E extends org.jboss.netty.channel.socket.nio.AbstractNioWorker>
Abstract base class forWorkerPool
implementations that create theWorker
's up-front and return them in a "fair" fashion when callingAbstractNioWorkerPool.nextWorker()
class
NioClientBossPool
HoldsNioClientBoss
instances to useclass
NioClientSocketChannelFactory
AClientSocketChannelFactory
which creates a client-side NIO-basedSocketChannel
.class
NioDatagramChannelFactory
ADatagramChannelFactory
that creates a NIO-based connectionlessDatagramChannel
.class
NioDatagramWorkerPool
Default implementation which hands ofNioDatagramWorker
'sclass
NioServerBossPool
HoldsNioServerBoss
instances to useclass
NioServerSocketChannelFactory
AServerSocketChannelFactory
which creates a server-side NIO-basedServerSocketChannel
.class
NioWorkerPool
Default implementation which hands ofNioWorker
's -
Uses of ExternalResourceReleasable in org.jboss.netty.channel.socket.oio
Classes in org.jboss.netty.channel.socket.oio that implement ExternalResourceReleasable Modifier and Type Class Description class
OioClientSocketChannelFactory
AClientSocketChannelFactory
which creates a client-side blocking I/O basedSocketChannel
.class
OioDatagramChannelFactory
ADatagramChannelFactory
which creates a blocking I/O basedDatagramChannel
.class
OioServerSocketChannelFactory
AServerSocketChannelFactory
which creates a server-side blocking I/O basedServerSocketChannel
. -
Uses of ExternalResourceReleasable in org.jboss.netty.handler.execution
Classes in org.jboss.netty.handler.execution that implement ExternalResourceReleasable Modifier and Type Class Description class
ChainedExecutor
class
ExecutionHandler
Forwards an upstreamChannelEvent
to anExecutor
. -
Uses of ExternalResourceReleasable in org.jboss.netty.handler.timeout
Classes in org.jboss.netty.handler.timeout that implement ExternalResourceReleasable Modifier and Type Class Description class
IdleStateHandler
Triggers anIdleStateEvent
when aChannel
has not performed read, write, or both operation for a while.class
ReadTimeoutHandler
Raises aReadTimeoutException
when no data was read within a certain period of time.class
WriteTimeoutHandler
Raises aWriteTimeoutException
when no data was written within a certain period of time. -
Uses of ExternalResourceReleasable in org.jboss.netty.handler.traffic
Classes in org.jboss.netty.handler.traffic that implement ExternalResourceReleasable Modifier and Type Class Description class
AbstractTrafficShapingHandler
AbstractTrafficShapingHandler allows to limit the global bandwidth (seeGlobalTrafficShapingHandler
) or per session bandwidth (seeChannelTrafficShapingHandler
), as traffic shaping.class
ChannelTrafficShapingHandler
This implementation of theAbstractTrafficShapingHandler
is for channel traffic shaping, that is to say a per channel limitation of the bandwidth.class
GlobalChannelTrafficShapingHandler
This implementation of theAbstractTrafficShapingHandler
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 theAbstractTrafficShapingHandler
is for global traffic shaping, that is to say a global limitation of the bandwidth, whatever the number of opened channels. -
Uses of ExternalResourceReleasable in org.jboss.netty.util
Methods in org.jboss.netty.util with parameters of type ExternalResourceReleasable Modifier and Type Method Description static void
ExternalResourceUtil. release(ExternalResourceReleasable... releasables)
Releases the specifiedExternalResourceReleasable
s.
-