@ChannelHandler.Sharable public class GlobalTrafficShapingHandler extends AbstractTrafficShapingHandler
AbstractTrafficShapingHandler is for global
traffic shaping, that is to say a global limitation of the bandwidth, whatever
the number of opened channels.ExecutionHandler (like
OrderedMemoryAwareThreadPoolExecutor or MemoryAwareThreadPoolExecutor).checkInterval, DEFAULT_CHECK_INTERVAL, executor, trafficCounter| Constructor and Description |
|---|
GlobalTrafficShapingHandler(Executor executor) |
GlobalTrafficShapingHandler(Executor executor,
long checkInterval) |
GlobalTrafficShapingHandler(Executor executor,
long writeLimit,
long readLimit) |
GlobalTrafficShapingHandler(Executor executor,
long writeLimit,
long readLimit,
long checkInterval) |
GlobalTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor) |
GlobalTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor,
long checkInterval) |
GlobalTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor,
long writeLimit,
long readLimit) |
GlobalTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor,
long writeLimit,
long readLimit,
long checkInterval) |
configure, configure, configure, doAccounting, getTrafficCounter, handleDownstream, hasLimit, messageReceived, releaseExternalResources, toString, writeRequestedbindRequested, channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, exceptionCaught, handleUpstream, setInterestOpsRequested, unbindRequested, writeCompletepublic GlobalTrafficShapingHandler(Executor executor, long writeLimit, long readLimit, long checkInterval)
executor - writeLimit - readLimit - checkInterval - public GlobalTrafficShapingHandler(Executor executor, long writeLimit, long readLimit)
executor - writeLimit - readLimit - public GlobalTrafficShapingHandler(Executor executor, long checkInterval)
executor - checkInterval - public GlobalTrafficShapingHandler(Executor executor)
executor - public GlobalTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor,
long writeLimit,
long readLimit,
long checkInterval)
objectSizeEstimator - executor - writeLimit - readLimit - checkInterval - public GlobalTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor,
long writeLimit,
long readLimit)
objectSizeEstimator - executor - writeLimit - readLimit - public GlobalTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor,
long checkInterval)
objectSizeEstimator - executor - checkInterval - public GlobalTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor)
objectSizeEstimator - executor - Copyright © 2011. All Rights Reserved.