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 TypeClassDescriptionclassA helper class which initializes aChannel.classA helper class which creates a new client-sideChanneland makes a connection attempt.classA helper class which creates a new server-sideChannelfor a connectionless transport.classA helper class which creates a new server-sideChanneland accepts incoming connections. -
Uses of ExternalResourceReleasable in org.jboss.netty.channel
Subinterfaces of ExternalResourceReleasable in org.jboss.netty.channelModifier and TypeInterfaceDescriptioninterfaceThe main interface to a transport that creates aChannelassociated with a certain communication entity such as a network socket.interfaceA region of a file that is sent via aChannelwhich supports zero-copy file transfer.interfaceAChannelFactorythat 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 TypeInterfaceDescriptioninterfaceAChannelFactorythat creates a client-sideLocalChannel.interfaceAServerChannelFactorythat creates aLocalServerChannel.Classes in org.jboss.netty.channel.local that implement ExternalResourceReleasableModifier and TypeClassDescriptionclassThe defaultLocalClientChannelFactoryimplementation.classThe defaultLocalServerChannelFactoryimplementation. -
Uses of ExternalResourceReleasable in org.jboss.netty.channel.socket
Subinterfaces of ExternalResourceReleasable in org.jboss.netty.channel.socketModifier and TypeInterfaceDescriptioninterfaceAChannelFactorywhich creates a client-sideSocketChannel.interfaceAChannelFactorywhich creates aDatagramChannel.interfaceAChannelFactorywhich creates aServerSocketChannel. -
Uses of ExternalResourceReleasable in org.jboss.netty.channel.socket.http
Classes in org.jboss.netty.channel.socket.http that implement ExternalResourceReleasableModifier and TypeClassDescriptionclassCreates a client-sideSocketChannelwhich connects to anHttpTunnelingServletto 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 TypeClassDescriptionclassAbstractNioBossPool<E extends Boss>classAbstractNioWorkerPool<E extends AbstractNioWorker>Abstract base class forWorkerPoolimplementations that create theWorker's up-front and return them in a "fair" fashion when callingAbstractNioWorkerPool.nextWorker()classHoldsNioClientBossinstances to useclassAClientSocketChannelFactorywhich creates a client-side NIO-basedSocketChannel.classADatagramChannelFactorythat creates a NIO-based connectionlessDatagramChannel.classDefault implementation which hands ofNioDatagramWorker'sclassHoldsNioServerBossinstances to useclassAServerSocketChannelFactorywhich creates a server-side NIO-basedServerSocketChannel.classDefault 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 TypeClassDescriptionclassAClientSocketChannelFactorywhich creates a client-side blocking I/O basedSocketChannel.classADatagramChannelFactorywhich creates a blocking I/O basedDatagramChannel.classAServerSocketChannelFactorywhich 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 TypeClassDescriptionclassTriggers anIdleStateEventwhen aChannelhas not performed read, write, or both operation for a while.classRaises aReadTimeoutExceptionwhen no data was read within a certain period of time.classRaises aWriteTimeoutExceptionwhen 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 TypeClassDescriptionclassAbstractTrafficShapingHandler allows to limit the global bandwidth (seeGlobalTrafficShapingHandler) or per session bandwidth (seeChannelTrafficShapingHandler), as traffic shaping.classThis implementation of theAbstractTrafficShapingHandleris for channel traffic shaping, that is to say a per channel limitation of the bandwidth.classThis implementation of theAbstractTrafficShapingHandleris 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.classThis implementation of theAbstractTrafficShapingHandleris 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 voidExternalResourceUtil.release(ExternalResourceReleasable... releasables) Releases the specifiedExternalResourceReleasables.