Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.common.util
Class ThrottledPool  view ThrottledPool download ThrottledPool.java

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

public class ThrottledPool
extends java.lang.Object

This is a pool of Throttle objects (!)


Field Summary
private  java.util.List pool
           
private  Throttle throttle
           
private  java.lang.Class type
           
 
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
 

Field Detail

throttle

private Throttle throttle

type

private java.lang.Class type

pool

private java.util.List pool
Constructor Detail

ThrottledPool

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

Method Detail

pop

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


push

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