openr66.protocol.networkhandler
Class ChannelTrafficHandler

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelHandler
      extended by org.jboss.netty.handler.traffic.AbstractTrafficShapingHandler
          extended by org.jboss.netty.handler.traffic.ChannelTrafficShapingHandler
              extended by openr66.protocol.networkhandler.ChannelTrafficHandler
All Implemented Interfaces:
org.jboss.netty.channel.ChannelDownstreamHandler, org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler, org.jboss.netty.util.ExternalResourceReleasable

public class ChannelTrafficHandler
extends org.jboss.netty.handler.traffic.ChannelTrafficShapingHandler

Author:
Frederic Bregier

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Field Summary
 
Fields inherited from class org.jboss.netty.handler.traffic.AbstractTrafficShapingHandler
checkInterval, DEFAULT_CHECK_INTERVAL, timer, trafficCounter
 
Constructor Summary
ChannelTrafficHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator, org.jboss.netty.util.Timer timer, long writeLimit, long readLimit, long checkInterval)
           
 
Method Summary
protected  void doAccounting(org.jboss.netty.handler.traffic.TrafficCounter counter)
           
 
Methods inherited from class org.jboss.netty.handler.traffic.ChannelTrafficShapingHandler
channelClosed, channelConnected
 
Methods inherited from class org.jboss.netty.handler.traffic.AbstractTrafficShapingHandler
configure, configure, configure, getTrafficCounter, handleDownstream, messageReceived, releaseExternalResources, toString, writeRequested
 
Methods inherited from class org.jboss.netty.channel.SimpleChannelHandler
bindRequested, channelBound, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, closeRequested, connectRequested, disconnectRequested, exceptionCaught, handleUpstream, setInterestOpsRequested, unbindRequested, writeComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelTrafficHandler

public ChannelTrafficHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
                             org.jboss.netty.util.Timer timer,
                             long writeLimit,
                             long readLimit,
                             long checkInterval)
Parameters:
objectSizeEstimator -
timer -
writeLimit -
readLimit -
checkInterval -
Method Detail

doAccounting

protected void doAccounting(org.jboss.netty.handler.traffic.TrafficCounter counter)
Overrides:
doAccounting in class org.jboss.netty.handler.traffic.AbstractTrafficShapingHandler


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.