| java.lang.Object com.ibatis.common.util.Throttle
Throttle | public class Throttle (Code) | | This is to help keep from getting too many resources
|
Constructor Summary | |
public | Throttle(int limit) | public | Throttle(int limit, long maxWait) |
Throttle | public Throttle(int limit)(Code) | | Create a throttle object with just a limit
Parameters: limit - - the number of references to allow |
Throttle | public Throttle(int limit, long maxWait)(Code) | | Create a throttle object with a limit and a wait time
Parameters: limit - - the number of references to allow Parameters: maxWait - - the maximum wait time allowed for a reference |
decrement | public void decrement()(Code) | | Remove a reference
|
increment | public void increment()(Code) | | Add a reference; if a reference is not available, an exception is thrown
|
|
|