Package com.exedio.cope.util
Class Pool<E>
- java.lang.Object
-
- com.exedio.cope.util.Pool<E>
-
public final class Pool<E> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Pool.Factory<E>
static class
Pool.Info
-
Constructor Summary
Constructors Constructor Description Pool(Pool.Factory<E> factory, int idleLimit, int idleInitial, PoolCounter counter)
Deprecated.UsePool(Factory, PoolProperties, PoolCounter)
instead.Pool(Pool.Factory<E> factory, PoolProperties properties, PoolCounter counter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flush()
E
get()
Pool.Info
getInfo()
void
put(E e)
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.
-
-
-
Constructor Detail
-
Pool
@Deprecated public Pool(Pool.Factory<E> factory, int idleLimit, int idleInitial, PoolCounter counter)
Deprecated.UsePool(Factory, PoolProperties, PoolCounter)
instead.
-
Pool
public Pool(Pool.Factory<E> factory, PoolProperties properties, PoolCounter counter)
-
-