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-sideSocketChanneland 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.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 classBootstrapA helper class which initializes aChannel.classClientBootstrapA helper class which creates a new client-sideChanneland makes a connection attempt.classConnectionlessBootstrapA helper class which creates a new server-sideChannelfor a connectionless transport.classServerBootstrapA 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.channel Modifier and Type Interface Description interfaceChannelFactoryThe main interface to a transport that creates aChannelassociated with a certain communication entity such as a network socket.interfaceFileRegionA region of a file that is sent via aChannelwhich supports zero-copy file transfer.interfaceServerChannelFactoryAChannelFactorythat creates aServerChannel.Classes in org.jboss.netty.channel that implement ExternalResourceReleasable Modifier and Type Class Description classDefaultFileRegion -
Uses of ExternalResourceReleasable in org.jboss.netty.channel.local
Subinterfaces of ExternalResourceReleasable in org.jboss.netty.channel.local Modifier and Type Interface Description interfaceLocalClientChannelFactoryAChannelFactorythat creates a client-sideLocalChannel.interfaceLocalServerChannelFactoryAServerChannelFactorythat creates aLocalServerChannel.Classes in org.jboss.netty.channel.local that implement ExternalResourceReleasable Modifier and Type Class Description classDefaultLocalClientChannelFactoryThe defaultLocalClientChannelFactoryimplementation.classDefaultLocalServerChannelFactoryThe defaultLocalServerChannelFactoryimplementation. -
Uses of ExternalResourceReleasable in org.jboss.netty.channel.socket
Subinterfaces of ExternalResourceReleasable in org.jboss.netty.channel.socket Modifier and Type Interface Description interfaceClientSocketChannelFactoryAChannelFactorywhich creates a client-sideSocketChannel.interfaceDatagramChannelFactoryAChannelFactorywhich creates aDatagramChannel.interfaceServerSocketChannelFactoryAChannelFactorywhich 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 classHttpTunnelingClientSocketChannelFactoryCreates 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 ExternalResourceReleasable Modifier and Type Class Description classAbstractNioBossPool<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()classNioClientBossPoolHoldsNioClientBossinstances to useclassNioClientSocketChannelFactoryAClientSocketChannelFactorywhich creates a client-side NIO-basedSocketChannel.classNioDatagramChannelFactoryADatagramChannelFactorythat creates a NIO-based connectionlessDatagramChannel.classNioDatagramWorkerPoolDefault implementation which hands ofNioDatagramWorker'sclassNioServerBossPoolHoldsNioServerBossinstances to useclassNioServerSocketChannelFactoryAServerSocketChannelFactorywhich creates a server-side NIO-basedServerSocketChannel.classNioWorkerPoolDefault implementation which hands ofNioWorker's(package private) classSocketReceiveBufferAllocator(package private) classSocketSendBufferPool -
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 classOioClientSocketChannelFactoryAClientSocketChannelFactorywhich creates a client-side blocking I/O basedSocketChannel.classOioDatagramChannelFactoryADatagramChannelFactorywhich creates a blocking I/O basedDatagramChannel.classOioServerSocketChannelFactoryAServerSocketChannelFactorywhich 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 Modifier and Type Class Description (package private) classEmbeddedChannelFactory -
Uses of ExternalResourceReleasable in org.jboss.netty.handler.execution
Classes in org.jboss.netty.handler.execution that implement ExternalResourceReleasable Modifier and Type Class Description classChainedExecutorclassExecutionHandlerForwards an upstreamChannelEventto 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 classIdleStateHandlerTriggers anIdleStateEventwhen aChannelhas not performed read, write, or both operation for a while.classReadTimeoutHandlerRaises aReadTimeoutExceptionwhen no data was read within a certain period of time.classWriteTimeoutHandlerRaises 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 ExternalResourceReleasable Modifier and Type Class Description classAbstractTrafficShapingHandlerAbstractTrafficShapingHandler allows to limit the global bandwidth (seeGlobalTrafficShapingHandler) or per session bandwidth (seeChannelTrafficShapingHandler), as traffic shaping.classChannelTrafficShapingHandlerThis implementation of theAbstractTrafficShapingHandleris for channel traffic shaping, that is to say a per channel limitation of the bandwidth.classGlobalChannelTrafficShapingHandlerThis 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.classGlobalTrafficShapingHandlerThis 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 ExternalResourceReleasable Modifier and Type Method Description static voidExternalResourceUtil. release(ExternalResourceReleasable... releasables)Releases the specifiedExternalResourceReleasables.
-