List of usage examples for org.apache.commons.pool.impl StackObjectPool subclass-usage
From source file net.firejack.platform.web.cache.MemcachedClientPool.java
public class MemcachedClientPool extends StackObjectPool<MemcachedClient> { public MemcachedClientPool(MemcachedClientFactory factory) { super(factory, 4, 8); }
From source file org.texai.kb.persistence.RDFEntityManagerPool.java
/** Given a PoolableObjectFactory, this class will maintain a simple pool of RDF entity manager instances. A finite number of "sleeping"
* or idle instances is enforced, but when the pool is empty, new instances are created to support the new load.
* Hence this class places no limit on the number of "active" instances created by the pool, but is quite useful
* for re-using Objects without introducing artificial limits.
*
* @author Stephen L. Reed
From source file edu.brown.utils.TypedStackObjectPool.java
public class TypedStackObjectPool<T extends Poolable> extends StackObjectPool { private static final Logger LOG = Logger.getLogger(TypedStackObjectPool.class); private final static LoggerBoolean debug = new LoggerBoolean(LOG.isDebugEnabled()); private final static LoggerBoolean trace = new LoggerBoolean(LOG.isTraceEnabled()); static { LoggerUtil.attachObserver(LOG, debug, trace);
From source file org.exist.util.XMLReaderPool.java
/**
* Maintains a pool of XMLReader objects. The pool is available through
* {@link BrokerPool#getParserPool()}.
*
* @author wolf
*/