|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.objectweb.jonas.resource.pool.lib.HArrayPool
The class HArrayPool implements a Pool as a HashSet of ManagedConnections, managing free/active resources.
| Constructor Summary | |
HArrayPool()
|
|
| Method Summary | |
PoolMatchFactory |
getMatchFactory()
getMatchFactory retrieves the PoolMatchFactory assigned to this Pool. |
int |
getMaxSize()
getMaxSize retrieves the maximum size assigned to this Pool. |
int |
getMinSize()
getMinSize retrieves the minimum size assigned to this Pool. |
java.lang.Object |
getResource(java.lang.Object hints)
getResource is used to allocate a Object from the Pool. |
int |
getSize()
getSize retrieves the current size of this Pool. |
long |
getTimeout()
getTimeout retrieves the timeout assigned to this Pool. |
void |
releaseResource(java.lang.Object resource,
boolean destroy)
releaseResource releases a Object in order to allow the Pool to recycle this Object. |
void |
setInitSize(int initsize)
setInitSize creates initsize resoures to this Pool. |
void |
setMatchFactory(PoolMatchFactory pmf)
setMatchFactory assigns a PoolMatchFactory to this Pool. |
void |
setMaxSize(int maxsize)
setMaxSize assigns a maximum size to this Pool. |
void |
setMinSize(int minsize)
setMinSize assigns a minimum size to this Pool. |
void |
setTimeout(long crto)
setTimeout assigns a timeout to this Pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HArrayPool()
| Method Detail |
public long getTimeout()
PoolgetTimeout in interface PoolPool.getTimeout()public int getMinSize()
PoolgetMinSize in interface PoolPool.getMinSize()public PoolMatchFactory getMatchFactory()
PoolgetMatchFactory in interface PoolPool.getMatchFactory()public int getMaxSize()
PoolgetMaxSize in interface PoolPool.getMaxSize()
public java.lang.Object getResource(java.lang.Object hints)
throws java.lang.Exception
PoolgetResource in interface PoolPool.getResource(java.lang.Object)public int getSize()
PoolgetSize in interface Poolorg.objectweb.jonas.resource.pool.api.Pool
public void releaseResource(java.lang.Object resource,
boolean destroy)
throws java.lang.Exception
PoolreleaseResource in interface PoolPool.releaseResource(java.lang.Object, boolean)public void setTimeout(long crto)
PoolsetTimeout in interface PoolPool.setTimeout(long)
public void setMinSize(int minsize)
throws java.lang.Exception
PoolsetMinSize in interface PoolPool.setMinSize(int)
public void setInitSize(int initsize)
throws java.lang.Exception
PoolsetInitSize in interface PoolPool.setMinSize(int)public void setMatchFactory(PoolMatchFactory pmf)
PoolsetMatchFactory in interface PoolPool.setMatchFactory(org.objectweb.jonas.resource.pool.api.PoolMatchFactory)
public void setMaxSize(int maxsize)
throws java.lang.Exception
PoolsetMaxSize in interface PoolPool.setMaxSize(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||