|
|||||||||
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()
Pool
getTimeout
in interface Pool
Pool.getTimeout()
public int getMinSize()
Pool
getMinSize
in interface Pool
Pool.getMinSize()
public PoolMatchFactory getMatchFactory()
Pool
getMatchFactory
in interface Pool
Pool.getMatchFactory()
public int getMaxSize()
Pool
getMaxSize
in interface Pool
Pool.getMaxSize()
public java.lang.Object getResource(java.lang.Object hints) throws java.lang.Exception
Pool
getResource
in interface Pool
Pool.getResource(java.lang.Object)
public int getSize()
Pool
getSize
in interface Pool
org.objectweb.jonas.resource.pool.api.Pool
public void releaseResource(java.lang.Object resource, boolean destroy) throws java.lang.Exception
Pool
releaseResource
in interface Pool
Pool.releaseResource(java.lang.Object, boolean)
public void setTimeout(long crto)
Pool
setTimeout
in interface Pool
Pool.setTimeout(long)
public void setMinSize(int minsize) throws java.lang.Exception
Pool
setMinSize
in interface Pool
Pool.setMinSize(int)
public void setInitSize(int initsize) throws java.lang.Exception
Pool
setInitSize
in interface Pool
Pool.setMinSize(int)
public void setMatchFactory(PoolMatchFactory pmf)
Pool
setMatchFactory
in interface Pool
Pool.setMatchFactory(org.objectweb.jonas.resource.pool.api.PoolMatchFactory)
public void setMaxSize(int maxsize) throws java.lang.Exception
Pool
setMaxSize
in interface Pool
Pool.setMaxSize(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |