com.ibatis.common.util
Class Throttle

java.lang.Object
  extended bycom.ibatis.common.util.Throttle

public class Throttle
extends java.lang.Object


Field Summary
private  int count
           
private  int limit
           
private  long maxWait
           
private  java.util.Map throttleMap
           
 
Constructor Summary
Throttle(int limit)
           
Throttle(int limit, long maxWait)
           
 
Method Summary
 void decrement(java.lang.Object object)
           
private  Throttle getThrottle(java.lang.Object object)
           
 void increment(java.lang.Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

throttleMap

private java.util.Map throttleMap

count

private int count

limit

private int limit

maxWait

private long maxWait
Constructor Detail

Throttle

public Throttle(int limit)

Throttle

public Throttle(int limit,
                long maxWait)
Method Detail

getThrottle

private Throttle getThrottle(java.lang.Object object)

increment

public void increment(java.lang.Object object)

decrement

public void decrement(java.lang.Object object)