|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.base.apps.xml.pool.XmlResourcePool
public class XmlResourcePool
Pool of XmlResources.
| Constructor Summary | |
|---|---|
XmlResourcePool()
Constructs an XmlResourcePool with default configuration. |
|
| Method Summary | |
|---|---|
XmlResource |
acquire()
Fetches an XmlResource from the pool, if one is available. |
void |
clear()
Empties the pool of idle XmlResources, not accounting for
resources currently checked out of the pool via acquire(). |
int |
getAcquiredCount()
Returns the number of XmlResources checked out of this pool. |
int |
getIdleCount()
Returns the number of XmlResources idle in this pool. |
protected GenericObjectPool |
getObjectPool()
|
static XmlResourcePool |
getPool()
Fetches the global XmlResourcePool. |
int |
getTotalCount()
Returns the total number of XmlResources managed by this pool. |
protected void |
init()
Initializes the pool implementation to grow as needed. |
void |
release(XmlResource rsrc)
Releases an XmlResource back to this pool. |
protected void |
setObjectPool(GenericObjectPool pool)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlResourcePool()
XmlResourcePool with default configuration.
| Method Detail |
|---|
public static XmlResourcePool getPool()
XmlResourcePool.
XmlResourcePool.public XmlResource acquire()
XmlResource from the pool, if one is available.
XmlResource or null, if the pool is empty.public void release(XmlResource rsrc)
XmlResource back to this pool.
rsrc - An XmlResource.public void clear()
XmlResources, not accounting for
resources currently checked out of the pool via acquire().
public int getAcquiredCount()
XmlResources checked out of this pool.
XmlResources checked out of this pool.public int getIdleCount()
XmlResources idle in this pool.
XmlResources idle in this pool.public int getTotalCount()
XmlResources managed by this pool.
XmlResources managed by this pool.protected void init()
protected GenericObjectPool getObjectPool()
protected void setObjectPool(GenericObjectPool pool)
pool - the pool to set
|
Please visit Base Apps, hosted on Sourceforge.net. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||