Package com.saperion.ws.pool
Class PoolHolder
java.lang.Object
com.saperion.ws.pool.PoolHolder
The Class PoolHolder. It holds the pool instance to be used by the web service instance.
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.commons.pool2.impl.GenericKeyedObjectPool
getPool()
Returns the pool instance.static void
setPoolInstance
(org.apache.commons.pool2.impl.GenericKeyedObjectPool pool) Sets the pool instance to hold.
-
Method Details
-
setPoolInstance
public static void setPoolInstance(org.apache.commons.pool2.impl.GenericKeyedObjectPool pool) Sets the pool instance to hold.- Parameters:
pool
- the pool instance to hold.
-
getPool
public static org.apache.commons.pool2.impl.GenericKeyedObjectPool getPool()Returns the pool instance.- Returns:
- the pool instance.
-