public abstract class ObjectPool<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
protected long |
expirationTime |
protected Hashtable<T,Long> |
locked |
protected static org.gcube.common.core.utils.logging.GCUBELog |
logger |
protected String |
name |
protected Hashtable<T,Long> |
unlocked |
| Constructor and Description |
|---|
ObjectPool(String name,
long expirationTime) |
protected static org.gcube.common.core.utils.logging.GCUBELog logger
protected long expirationTime
protected boolean closed
protected String name
public ObjectPool(String name, long expirationTime)
protected abstract T create()
protected abstract boolean validate(T o)
protected abstract void expire(T o)
public T checkOut()
public void checkIn(T t)
public void shutdown(boolean force)
public void expireAllUnlocked()
public void expireAllLocked()
Copyright © 2014. All Rights Reserved.