org.apache.ws.commons.tcpmon.core.filter.throttle
Class ThrottleConfiguration

java.lang.Object
  extended by org.apache.ws.commons.tcpmon.core.filter.throttle.ThrottleConfiguration
All Implemented Interfaces:
StreamFilterFactory

public class ThrottleConfiguration
extends Object
implements StreamFilterFactory


Constructor Summary
ThrottleConfiguration(int delayBytes, int delayTime)
          construct
 
Method Summary
 int getDelayBytes()
           
 int getDelayTime()
           
 StreamFilter newInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrottleConfiguration

public ThrottleConfiguration(int delayBytes,
                             int delayTime)
construct

Parameters:
delayBytes - bytes per delay; set to 0 for no delay
delayTime - delay time per delay in milliseconds
Method Detail

getDelayBytes

public int getDelayBytes()

getDelayTime

public int getDelayTime()

newInstance

public StreamFilter newInstance()
Specified by:
newInstance in interface StreamFilterFactory


Copyright © The Apache Software Foundation. All Rights Reserved.