public class Pool<T> extends Object implements ObjectPool<T>
| Constructor and Description |
|---|
Pool(PoolableObjectFactory<T> objectFactory) |
| Modifier and Type | Method and Description |
|---|---|
T |
borrowObject() |
int |
getNumActive() |
int |
getNumIdle() |
void |
returnObject(T object) |
void |
returnObjects(Collection<T> collection) |
public Pool(PoolableObjectFactory<T> objectFactory)
public T borrowObject()
borrowObject in interface ObjectPool<T>public void returnObject(T object)
returnObject in interface ObjectPool<T>public void returnObjects(Collection<T> collection)
returnObjects in interface ObjectPool<T>public int getNumActive()
getNumActive in interface ObjectPool<T>public int getNumIdle()
getNumIdle in interface ObjectPool<T>Copyright © 2014–2025 Onix Solutions. All rights reserved.