|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.test.classtest.TestPoolManager.TestPool
class TestPoolManager.TestPool
This class does the resource pooling for TestResource, with the help of PoolManager
Field Summary | |
---|---|
private int |
counter
|
(package private) PoolManager |
poolManager
|
Constructor Summary | |
---|---|
TestPoolManager.TestPool(int maxInstances,
long busyToIdle,
long idleToErase)
|
Method Summary | |
---|---|
void |
busyToIdle(java.lang.Object resource)
Is invoked on state transition from 'busy' to 'idle'. |
void |
idleToBusy(java.lang.Object resource)
Is invoked on state transition from 'idle' to 'busy'. |
(package private) void |
release(TestPoolManager.TestResource rr)
|
(package private) TestPoolManager.TestResource |
reserve()
|
(package private) TestPoolManager.TestResource |
reserve(java.lang.String instanceId)
|
java.lang.Object |
toCreate(java.lang.String instanceId)
Is invoked when a new resource is needed. |
void |
toErased(java.lang.Object resource)
Is invoked when a resource is destroyed explicitly or by timeout. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int counter
PoolManager poolManager
Constructor Detail |
---|
TestPoolManager.TestPool(int maxInstances, long busyToIdle, long idleToErase)
Method Detail |
---|
public void idleToBusy(java.lang.Object resource)
I_PoolManager
idleToBusy
in interface I_PoolManager
public void busyToIdle(java.lang.Object resource)
I_PoolManager
busyToIdle
in interface I_PoolManager
public java.lang.Object toCreate(java.lang.String instanceId) throws XmlBlasterException
I_PoolManager
toCreate
in interface I_PoolManager
XmlBlasterException
public void toErased(java.lang.Object resource)
I_PoolManager
toErased
in interface I_PoolManager
TestPoolManager.TestResource reserve()
TestPoolManager.TestResource reserve(java.lang.String instanceId)
void release(TestPoolManager.TestResource rr)
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |