|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.component.framework.util.JVMDocumentBuilderResourcePool
public class JVMDocumentBuilderResourcePool
This class represent a JVM DocumentBuilder pool, which provided JVM DocumentBuilder
object as resource.
| Constructor Summary | |
|---|---|
JVMDocumentBuilderResourcePool(int minPoolSize,
int maxPoolSize,
com.ebmwebsourcing.easycommons.pooling.PoolPolicy poolPolicy)
Allowing to instantiate a new JVMDocumentBuilderResourcePool containing JVM DocumentBuilder resources. |
|
| Method Summary | |
|---|---|
void |
release(javax.xml.parsers.DocumentBuilder jvmDocumentBuilder)
Release the specified JVM DocumentBuilder After putting back the
JVM DocumentBuilder in the pool, the method onRelease() of the
JVM DocumentBuilder resource handler is called. |
javax.xml.parsers.DocumentBuilder |
take()
Take one unused JVM DocumentBuilder in the current pool. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JVMDocumentBuilderResourcePool(int minPoolSize,
int maxPoolSize,
com.ebmwebsourcing.easycommons.pooling.PoolPolicy poolPolicy)
JVMDocumentBuilderResourcePool containing JVM DocumentBuilder resources.
minPoolSize - The minimum number of JVM DocumentBuilder instances in the pool (created at the
initialization).maxPoolSize - the maximum number of JVM DocumentBuilder instances in the current pool (limit of the
pool). It must be greater or equals to the specified minSize.
The maximum value is Integer.MAX_VALUEpoolPolicy - the PoolPolicy to adopt when the maximum size is reached. it
must not be null.| Method Detail |
|---|
public javax.xml.parsers.DocumentBuilder take()
DocumentBuilder in the current pool. After getting a
JVM DocumentBuilder from the pool and before returning a
JVM DocumentBuilder, the method onTake() of the JVM DocumentBuilder
resource handler is called.
DocumentBuilder
com.ebmwebsourcing.easycommons.pooling.PoolException - if the current thread is interrupted for the pool policy WAIT
or if there is no more available resource in the pool for the
pool policy REJECTpublic final void release(javax.xml.parsers.DocumentBuilder jvmDocumentBuilder)
DocumentBuilder After putting back the
JVM DocumentBuilder in the pool, the method onRelease() of the
JVM DocumentBuilder resource handler is called.
jvmDocumentBuilder - The JVM DocumentBuilder to release
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||