nf.fr.eraasoft.pool
Interface ObjectPool<T>

All Known Implementing Classes:
AbstractPool, BlockingQueueObjectPool, ConcurrentLinkedQueuePool

public interface ObjectPool<T>


Method Summary
 T getObj()
           PoolSettings<MyType> poolSettings = ....; MyType myType = poolSettings.pool().getObj();
 void returnObj(T object)
          Return object to the pool
 

Method Detail

getObj

T getObj()
         throws PoolException
 PoolSettings<MyType> poolSettings = ....;
                MyType myType = poolSettings.pool().getObj();
          

Returns:
an instance of T object
Throws:
java.lang.InterruptedException
PoolException

returnObj

void returnObj(T object)
Return object to the pool

Parameters:
object -


Copyright © 2013. All Rights Reserved.