public interface ResettableObjectPoolInterface<T extends Resettable>
| Modifier and Type | Method and Description |
|---|---|
T |
borrowObject()
Borrow an object from the pool.
|
void |
clear()
Clear objects stored in the pool waited to be borrowed.
|
int |
getNumActive()
Number of active objects (checked out of the pool, not yet returned).
|
int |
getNumIdle()
Number of idle objects (in the pool).
|
void |
invalidateObject(T t)
Return an object but do not place it back into the pool.
|
T |
makeObject()
Abstract class for making objects for the pool / to be borrowed.
|
void |
returnObject(T t)
Return an object to the pool that was borrowed.
|
T makeObject()
T borrowObject()
void returnObject(T t)
t - object to returnvoid invalidateObject(T t)
t - object being returned but not placed into the queueint getNumIdle()
int getNumActive()
void clear()
Copyright © 2017 Campagne Laboratory. All rights reserved.