com.ibatis.common.util
Class ThrottledPool

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

public class ThrottledPool
extends java.lang.Object

This is a pool of Throttle objects (!)


Constructor Summary
ThrottledPool(java.lang.Class type, int size)
          Create a ThrottledPool for a Class
 
Method Summary
 java.lang.Object pop()
          Pop an object from the pool
 void push(java.lang.Object o)
          Push an object onto the pool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrottledPool

public ThrottledPool(java.lang.Class type,
                     int size)
Create a ThrottledPool for a Class

Parameters:
type - - the type of objects being managed
size - - the size of the pool
Method Detail

pop

public java.lang.Object pop()
Pop an object from the pool

Returns:
- the Object

push

public void push(java.lang.Object o)
Push an object onto the pool

Parameters:
o - - the object to put into the pool