|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.util.pool.ResourceWrapper
public class ResourceWrapper
Container holds infos about a resource.
All ResourceWrapper are handled in a pool, the 'PoolManager' class.
PoolManager
Method Summary | |
---|---|
long |
busyElapsed()
How long am i running in busy mode. |
void |
destroy()
Cleanup, reset timer and destroy id. |
long |
getBusyToIdleTimeout()
Access the overall busy timeout span of this resource. |
long |
getCreationTime()
Access the construction date of this ResourceWrapper. |
long |
getIdleToEraseTimeout()
Access the overall idle timeout span of this resource. |
java.lang.String |
getInstanceId()
Access the unique resource ID. |
java.lang.Object |
getResource()
Access the resource object. |
boolean |
isBusyExpired()
Is the resource life span expired? |
long |
spanOfTimeToErase()
How long to my death. |
long |
spanOfTimeToIdle()
How long until i swap from busy to idle. |
void |
timeout(java.lang.Object obj)
A timeout occurred. |
void |
touchBusy()
Restart count down in busy mode. |
java.lang.String |
toXml()
Dump state of this object into a XML ASCII string. |
java.lang.String |
toXml(java.lang.String extraOffset)
Dump state of this object into a XML ASCII string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void timeout(java.lang.Object obj)
timeout
in interface I_Timeout
The
- timeout type, BUSY_TO_IDLE_TIMEOUT or IDLE_TO_ERASE_TIMEOUTpublic boolean isBusyExpired()
public long busyElapsed()
public long spanOfTimeToErase()
public long spanOfTimeToIdle()
public void touchBusy()
public java.lang.String getInstanceId()
public java.lang.Object getResource()
public long getBusyToIdleTimeout()
public long getIdleToEraseTimeout()
public void destroy()
public long getCreationTime()
public final java.lang.String toXml()
public final java.lang.String toXml(java.lang.String extraOffset)
extraOffset
- indenting of tags for nice output
|
xmlBlaster 2.2.0 client API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |