|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.pool.PoolObject
public abstract class PoolObject
Provides some basic object management facilities for Pooled Objects
Copyright (c) Formaria Ltd. 2008
$Revision: 2.3 $
| Constructor Summary | |
|---|---|
PoolObject()
|
|
| Method Summary | |
|---|---|
abstract void |
close()
Close the object and return to the pool. |
void |
expireLease()
Expire the object's lease |
boolean |
getInUse()
Is the object in use? |
long |
getLastUse()
Gets the last use time of the object |
boolean |
lease()
Mark an object as being in use |
abstract boolean |
validate()
Check to see if the object is still valid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PoolObject()
| Method Detail |
|---|
public boolean lease()
public abstract boolean validate()
public boolean getInUse()
public long getLastUse()
public abstract void close()
throws java.lang.Exception
java.lang.Exception - close the underlying resourcepublic void expireLease()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||