Methods Summary |
---|
public boolean | addPoolListener(PoolListener listener)Add a PoolListener
|
public void | destroyObject(java.lang.Object obj)Destroys an Object. Note that applications should not ignore the reference
to the object that they got from getObject(). An object that is obtained through
getObject() must always be returned back to the pool using either
returnObject(obj) or through destroyObject(obj). This method tells that the
object should be destroyed and cannot be reused.
|
public java.lang.Object | getObject(boolean toWait, java.lang.Object param)Get an object.
|
public java.lang.Object | getObject(long waitForMillis, java.lang.Object param)Get an object from the pool within the specified time.
|
public boolean | removePoolListener(PoolListener listener)Add a PoolListener
|
public void | returnObject(java.lang.Object obj)Return an object back to the pool. An object that is obtained through
getObject() must always be returned back to the pool using either
returnObject(obj) or through destroyObject(obj).
|