org.ow2.easywsdl.extensions.wsdl4complexwsdl
Class WSDL4ComplexWsdlReaderResourcePool

java.lang.Object
  extended by org.ow2.easywsdl.extensions.wsdl4complexwsdl.WSDL4ComplexWsdlReaderResourcePool

public class WSDL4ComplexWsdlReaderResourcePool
extends java.lang.Object

This class represent a WSDL4ComplexWsdlReader pool, which provided WSDL4ComplexWsdlReader object as resource.

Author:
noddoux

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

WSDL4ComplexWsdlReaderResourcePool

public WSDL4ComplexWsdlReaderResourcePool(int minPoolSize,
                                          int maxPoolSize,
                                          com.ebmwebsourcing.easycommons.pooling.PoolPolicy poolPolicy)
Allowing to instantiate a new WSDL4ComplexWsdlReaderResourcePool containing WSDL4ComplexWsdlReader resources.

Parameters:
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_VALUE
poolPolicy - the PoolPolicy to adopt when the maximum size is reached. it must not be null.
Method Detail

take

public WSDL4ComplexWsdlReader take()
Take one unused 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.

Returns:
one WSDL4ComplexWsdlReader
Throws:
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 REJECT

release

public final 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.

Parameters:
wsdl4ComplexWsdlReader - The WSDL4ComplexWsdlReader to release


Copyright © 2008-2011 Petals Link (previously EBM WebSourcing). All Rights Reserved.