org.bson.util
Class SimplePool<T>

java.lang.Object
  extended by org.bson.util.SimplePool<T>

public abstract class SimplePool<T>
extends Object


Constructor Summary
SimplePool()
           
SimplePool(int max)
           
 
Method Summary
protected abstract  T createNew()
           
 void done(T t)
           
 T get()
           
protected  boolean ok(T t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePool

public SimplePool(int max)

SimplePool

public SimplePool()
Method Detail

createNew

protected abstract T createNew()

ok

protected boolean ok(T t)

get

public T get()

done

public void done(T t)