com.ibatis.common.util
Class Throttle
java.lang.Object
com.ibatis.common.util.Throttle
public class Throttle
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
throttleMap
private java.util.Map throttleMap
count
private int count
limit
private int limit
maxWait
private long maxWait
Throttle
public Throttle(int limit)
Throttle
public Throttle(int limit,
long maxWait)
getThrottle
private Throttle getThrottle(java.lang.Object object)
increment
public void increment(java.lang.Object object)
decrement
public void decrement(java.lang.Object object)