Package com.exedio.cope.util
Class Pool<E>
java.lang.Object
com.exedio.cope.util.Pool<E>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPool
(Pool.Factory<E> factory, int idleLimit, int idleInitial, PoolCounter counter) Deprecated.Pool
(Pool.Factory<E> factory, PoolProperties properties, PoolCounter counter) -
Method Summary
-
Constructor Details
-
Pool
@Deprecated public Pool(Pool.Factory<E> factory, int idleLimit, int idleInitial, PoolCounter counter) Deprecated.UsePool(Factory, PoolProperties, PoolCounter)
instead. -
Pool
-
-
Method Details
-
get
-
put
TODO: If we want to implement changing item parameters on-the-fly somewhere in the future, it's important, that client return items to exactly the same instance of Pool. -
flush
public void flush() -
getInfo
-
Pool(Factory, PoolProperties, PoolCounter)
instead.