vishnu.patterns
Class Pool<T>

java.lang.Object
  extended by vishnu.patterns.Pool<T>

public class Pool<T>
extends java.lang.Object

 

Constructor Summary
Pool(int poolSize, T prototype)
           
 
Method Summary
 void release(T t)
           
 T take()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pool

public Pool(int poolSize,
            T prototype)
Method Detail

take

public T take()

release

public void release(T t)