|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.identityconnectors.framework.impl.api.local.ObjectPool<T>
public class ObjectPool<T>
| Nested Class Summary | |
|---|---|
static class |
ObjectPool.Statistics
Statistics bean |
| Constructor Summary | |
|---|---|
ObjectPool(ObjectPoolHandler<T> handler,
ObjectPoolConfiguration config)
Create a new ObjectPool |
|
| Method Summary | |
|---|---|
T |
borrowObject()
Borrow an object from the pool. |
ObjectPool.Statistics |
getStatistics()
Gets a snapshot of the pool's stats at a point in time. |
void |
returnObject(T object)
Return an object to the pool |
void |
shutdown()
Closes any idle objects in the pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectPool(ObjectPoolHandler<T> handler,
ObjectPoolConfiguration config)
handler - Handler for objectsconfig - Configuration for the pool| Method Detail |
|---|
public void returnObject(T object)
object - public T borrowObject()
public void shutdown()
public ObjectPool.Statistics getStatistics()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||