Skip navigation links
oracle.wsm.common.util
Class ObjectPool<T>
java.lang.Object
oracle.wsm.common.util.ObjectPool<T>
- Direct Known Subclasses:
- TransformerObjectPool
-
public abstract class ObjectPool<T>
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
expirationEnabled
protected boolean expirationEnabled
validationCriterion
protected String validationCriterion
ObjectPool
public ObjectPool(boolean blocking)
ObjectPool
public ObjectPool(long expirationTime,
boolean blocking)
ObjectPool
public ObjectPool(String validationCriterion,
boolean blocking)
ObjectPool
public ObjectPool(long expirationTime,
String validationCriterion,
boolean blocking)
ObjectPool
public ObjectPool(long expirationTime,
String validationCriterion,
int poolMaxSize,
boolean blocking)
create
protected abstract T create()
throws CommonUtilException
-
- Throws:
CommonUtilException
validate
public abstract boolean validate(T o)
throws CommonUtilException
-
- Throws:
CommonUtilException
cleanup
public abstract void cleanup(T o)
throws CommonUtilException
-
- Throws:
CommonUtilException
checkOut
public T checkOut()
throws CommonUtilException
-
- Throws:
CommonUtilException
checkIn
public void checkIn(T t)
throws CommonUtilException
-
- Throws:
CommonUtilException
getAvailablePoolSize
public int getAvailablePoolSize()
getBusyPoolSize
public int getBusyPoolSize()
getPoolMaxSize
public int getPoolMaxSize()
Skip navigation links
Copyright © 2007, 2009, Oracle and/or its affiliates. All rights reserved.