public interface Pool
| Modifier and Type | Method and Description |
|---|---|
void |
destroyObject(Object obj)
Destroys an Object.
|
Object |
getObject(boolean canWait,
Object param)
Deprecated.
|
Object |
getObject(long maxWaitTime,
Object param)
Deprecated.
|
Object |
getObject(Object param)
Get an object from the pool within the specified time.
|
void |
returnObject(Object obj)
Return an object back to the pool.
|
Object getObject(boolean canWait, Object param) throws PoolException
canWait - param - PoolExceptionObject getObject(long maxWaitTime, Object param) throws PoolException
maxWaitTime - param - PoolExceptionObject getObject(Object param) throws PoolException
param - PoolException - if an object cannot be createdvoid returnObject(Object obj)
obj - void destroyObject(Object obj)
obj - Copyright © 2017. All rights reserved.