|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibatis.common.util.Throttle
This is to help keep from getting too many resources
| Constructor Summary | |
Throttle(int limit)
Create a throttle object with just a limit |
|
Throttle(int limit,
long maxWait)
Create a throttle object with a limit and a wait time |
|
| Method Summary | |
void |
decrement()
Remove a reference |
void |
increment()
Add a reference; if a reference is not available, an exception is thrown |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Throttle(int limit)
limit - - the number of references to allow
public Throttle(int limit,
long maxWait)
limit - - the number of references to allowmaxWait - - the maximum wait time allowed for a reference| Method Detail |
public void increment()
public void decrement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||