|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.SpyObject
net.spy.pool.PooledObject
public class PooledObject
Pooled object return package. This object primarily exists as a means for having a safe way to have access to PoolAble objects. Anyone using a PooledObject will not be able to retrieve the object that was pooled after checking it back in, and it makes it safe to forget to check an object back in on occasion.
| Constructor Summary | |
|---|---|
PooledObject(PoolAble p)
Get a new PooledObject containing the given PoolAble |
|
| Method Summary | |
|---|---|
void |
checkIn()
Manually check the object back in. |
protected void |
finalize()
Finalization will check-in any checked-out object that has not already been checked in. |
java.lang.Object |
getObject()
Get the object we just checked out. |
int |
getObjectID()
Get the objectID for the pool object we have checked out. |
boolean |
isAlive()
Find out if the object is alive |
| Methods inherited from class net.spy.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PooledObject(PoolAble p)
| Method Detail |
|---|
public java.lang.Object getObject()
throws PoolException
PoolException - if a problem occurspublic boolean isAlive()
public void checkIn()
public int getObjectID()
protected void finalize()
finalize in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||