|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.easywsdl.extensions.wsdl4complexwsdl.WSDL4ComplexWsdlReaderResourcePool
public class WSDL4ComplexWsdlReaderResourcePool
This class represent a WSDL4ComplexWsdlReader pool, which provides WSDL4ComplexWsdlReader
objects as resources.
| Constructor Summary | |
|---|---|
WSDL4ComplexWsdlReaderResourcePool(int minPoolSize,
int maxPoolSize,
com.ebmwebsourcing.easycommons.pooling.PoolPolicy poolPolicy)
Allowing to instantiate a new WSDL4ComplexWsdlReaderResourcePool containing WSDL4ComplexWsdlReader resources. |
|
| Method Summary | |
|---|---|
void |
release(WSDL4ComplexWsdlReader wsdl4ComplexWsdlReader)
Release the specified WSDL4ComplexWsdlReader After putting back the
WSDL4ComplexWsdlReader in the pool, the method onRelease() of the
WSDL4ComplexWsdlReader resource handler is called. |
WSDL4ComplexWsdlReader |
take()
Take one unused WSDL4ComplexWsdlReader 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 WSDL4ComplexWsdlReaderResourcePool(int minPoolSize,
int maxPoolSize,
com.ebmwebsourcing.easycommons.pooling.PoolPolicy poolPolicy)
WSDL4ComplexWsdlReaderResourcePool containing WSDL4ComplexWsdlReader resources.
minPoolSize - The minimum number of WSDL4ComplexWsdlReader instances in the pool (created at the
initialization).maxPoolSize - the maximum number of WSDL4ComplexWsdlReader 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 WSDL4ComplexWsdlReader take()
WSDL4ComplexWsdlReader in the current pool. After getting a
WSDL4ComplexWsdlReader from the pool and before returning a
WSDL4ComplexWsdlReader, the method onTake() of the WSDL4ComplexWsdlReader
resource handler is called.
WSDL4ComplexWsdlReader
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(WSDL4ComplexWsdlReader wsdl4ComplexWsdlReader)
WSDL4ComplexWsdlReader After putting back the
WSDL4ComplexWsdlReader in the pool, the method onRelease() of the
WSDL4ComplexWsdlReader resource handler is called.
wsdl4ComplexWsdlReader - The WSDL4ComplexWsdlReader to release
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||