Uses of Interface
org.jboss.netty.util.ExternalResourceReleasable
Packages that use ExternalResourceReleasable
Package
Description
IoC/DI friendly helper classes which enable an easy implementation of
typical client side and server side channel initialization.
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
A virtual transport that enables the communication between the two
parties in the same virtual machine.
Abstract TCP and UDP socket interfaces which extend the core channel API.
An HTTP-based client-side
SocketChannel
and its corresponding server-side Servlet implementation that make your
existing server application work in a firewalled network.NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
Old blocking I/O based socket channel API implementation - recommended for
a small number of connections (< 1000).
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.
Executor
-based implementation of various
thread models that separate business logic from I/O threadsAdds support for read and write timeout and idle connection notification
using a
Timer
.Implementation of a Traffic Shaping Handler and Dynamic Statistics.
Utility classes used across multiple packages.
-
Uses of ExternalResourceReleasable in org.jboss.netty.bootstrap
Classes in org.jboss.netty.bootstrap that implement ExternalResourceReleasableModifier and TypeClassDescriptionclass
A helper class which initializes aChannel
.class
A helper class which creates a new client-sideChannel
and makes a connection attempt.class
A helper class which creates a new server-sideChannel
for a connectionless transport.class
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.channelModifier and TypeInterfaceDescriptioninterface
The main interface to a transport that creates aChannel
associated with a certain communication entity such as a network socket.interface
A region of a file that is sent via aChannel
which supports zero-copy file transfer.interface
AChannelFactory
that creates aServerChannel
.Classes in org.jboss.netty.channel that implement ExternalResourceReleasable -
Uses of ExternalResourceReleasable in org.jboss.netty.channel.local
Subinterfaces of ExternalResourceReleasable in org.jboss.netty.channel.localModifier and TypeInterfaceDescriptioninterface
AChannelFactory
that creates a client-sideLocalChannel
.interface
AServerChannelFactory
that creates aLocalServerChannel
.Classes in org.jboss.netty.channel.local that implement ExternalResourceReleasableModifier and TypeClassDescriptionclass
The defaultLocalClientChannelFactory
implementation.class
The defaultLocalServerChannelFactory
implementation. -
Uses of ExternalResourceReleasable in org.jboss.netty.channel.socket
Subinterfaces of ExternalResourceReleasable in org.jboss.netty.channel.socketModifier and TypeInterfaceDescriptioninterface
AChannelFactory
which creates a client-sideSocketChannel
.interface
AChannelFactory
which creates aDatagramChannel
.interface
AChannelFactory
which creates aServerSocketChannel
. -
Uses of ExternalResourceReleasable in org.jboss.netty.channel.socket.http
Classes in org.jboss.netty.channel.socket.http that implement ExternalResourceReleasableModifier and TypeClassDescriptionclass
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 ExternalResourceReleasableModifier and TypeClassDescriptionclass
AbstractNioBossPool<E extends Boss>
class
AbstractNioWorkerPool<E extends AbstractNioWorker>
Abstract base class forWorkerPool
implementations that create theWorker
's up-front and return them in a "fair" fashion when callingAbstractNioWorkerPool.nextWorker()
class
HoldsNioClientBoss
instances to useclass
AClientSocketChannelFactory
which creates a client-side NIO-basedSocketChannel
.class
ADatagramChannelFactory
that creates a NIO-based connectionlessDatagramChannel
.class
Default implementation which hands ofNioDatagramWorker
'sclass
HoldsNioServerBoss
instances to useclass
AServerSocketChannelFactory
which creates a server-side NIO-basedServerSocketChannel
.class
Default implementation which hands ofNioWorker
's(package private) final class
(package private) final class
-
Uses of ExternalResourceReleasable in org.jboss.netty.channel.socket.oio
Classes in org.jboss.netty.channel.socket.oio that implement ExternalResourceReleasableModifier and TypeClassDescriptionclass
AClientSocketChannelFactory
which creates a client-side blocking I/O basedSocketChannel
.class
ADatagramChannelFactory
which creates a blocking I/O basedDatagramChannel
.class
AServerSocketChannelFactory
which creates a server-side blocking I/O basedServerSocketChannel
. -
Uses of ExternalResourceReleasable in org.jboss.netty.handler.codec.embedder
Classes in org.jboss.netty.handler.codec.embedder that implement ExternalResourceReleasable -
Uses of ExternalResourceReleasable in org.jboss.netty.handler.execution
Classes in org.jboss.netty.handler.execution that implement ExternalResourceReleasable -
Uses of ExternalResourceReleasable in org.jboss.netty.handler.timeout
Classes in org.jboss.netty.handler.timeout that implement ExternalResourceReleasableModifier and TypeClassDescriptionclass
Triggers anIdleStateEvent
when aChannel
has not performed read, write, or both operation for a while.class
Raises aReadTimeoutException
when no data was read within a certain period of time.class
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 ExternalResourceReleasableModifier and TypeClassDescriptionclass
AbstractTrafficShapingHandler allows to limit the global bandwidth (seeGlobalTrafficShapingHandler
) or per session bandwidth (seeChannelTrafficShapingHandler
), as traffic shaping.class
This implementation of theAbstractTrafficShapingHandler
is for channel traffic shaping, that is to say a per channel limitation of the bandwidth.class
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
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 ExternalResourceReleasableModifier and TypeMethodDescriptionstatic void
ExternalResourceUtil.release
(ExternalResourceReleasable... releasables) Releases the specifiedExternalResourceReleasable
s.