T
- the pooled typepublic interface Pool<T>
Modifier and Type | Method and Description |
---|---|
T |
acquire()
Acquires an instance from the pool.
|
void |
release(T instance)
Releases an instance to the pool.
|
T acquire()
void release(T instance)
instance
- the instance to release