@ChannelHandler.Sharable public class ChannelTrafficShapingHandler extends AbstractTrafficShapingHandler
AbstractTrafficShapingHandler is for channel
traffic shaping, that is to say a per channel limitation of the bandwidth.ExecutionHandler (like
OrderedMemoryAwareThreadPoolExecutor or MemoryAwareThreadPoolExecutor).ChannelPipelineFactory, you should create a new ChannelTrafficShapingHandler in this
ChannelPipelineFactory each time getPipeline() method is called.checkInterval, DEFAULT_CHECK_INTERVAL, executor, trafficCounter| Constructor and Description |
|---|
ChannelTrafficShapingHandler(Executor executor) |
ChannelTrafficShapingHandler(Executor executor,
long checkInterval) |
ChannelTrafficShapingHandler(Executor executor,
long writeLimit,
long readLimit) |
ChannelTrafficShapingHandler(Executor executor,
long writeLimit,
long readLimit,
long checkInterval) |
ChannelTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor) |
ChannelTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor,
long checkInterval) |
ChannelTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor,
long writeLimit,
long readLimit) |
ChannelTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor,
long writeLimit,
long readLimit,
long checkInterval) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
void |
channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ChannelStateEvent e) |
configure, configure, configure, doAccounting, getTrafficCounter, handleDownstream, hasLimit, messageReceived, releaseExternalResources, toString, writeRequestedbindRequested, channelBound, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, exceptionCaught, handleUpstream, setInterestOpsRequested, unbindRequested, writeCompletepublic ChannelTrafficShapingHandler(Executor executor, long writeLimit, long readLimit, long checkInterval)
executor - writeLimit - readLimit - checkInterval - public ChannelTrafficShapingHandler(Executor executor, long writeLimit, long readLimit)
executor - writeLimit - readLimit - public ChannelTrafficShapingHandler(Executor executor, long checkInterval)
executor - checkInterval - public ChannelTrafficShapingHandler(Executor executor)
executor - public ChannelTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor,
long writeLimit,
long readLimit,
long checkInterval)
objectSizeEstimator - executor - writeLimit - readLimit - checkInterval - public ChannelTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor,
long writeLimit,
long readLimit)
objectSizeEstimator - executor - writeLimit - readLimit - public ChannelTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor,
long checkInterval)
objectSizeEstimator - executor - checkInterval - public ChannelTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
Executor executor)
objectSizeEstimator - executor - Copyright © 2011. All Rights Reserved.