public class ObjectPool<A>
extends java.lang.Object
Constructor and Description |
---|
ObjectPool(int capacity,
scala.Function0<A> create,
scala.Function1<A,scala.runtime.BoxedUnit> clear) |
Modifier and Type | Method and Description |
---|---|
A |
acquire() |
boolean |
release(A obj) |