public abstract class Pool<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.pool.impl.GenericObjectPool |
internalPool |
Constructor and Description |
---|
Pool()
Using this constructor means you have to set
and initialize the internalPool yourself.
|
Pool(org.apache.commons.pool.impl.GenericObjectPool.Config poolConfig,
org.apache.commons.pool.PoolableObjectFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
T |
getResource() |
void |
initPool(org.apache.commons.pool.impl.GenericObjectPool.Config poolConfig,
org.apache.commons.pool.PoolableObjectFactory factory) |
void |
returnBrokenResource(T resource) |
protected void |
returnBrokenResourceObject(Object resource) |
void |
returnResource(T resource) |
void |
returnResourceObject(Object resource) |
public Pool()
public Pool(org.apache.commons.pool.impl.GenericObjectPool.Config poolConfig, org.apache.commons.pool.PoolableObjectFactory factory)
public void initPool(org.apache.commons.pool.impl.GenericObjectPool.Config poolConfig, org.apache.commons.pool.PoolableObjectFactory factory)
public T getResource()
public void returnResourceObject(Object resource)
public void returnBrokenResource(T resource)
public void returnResource(T resource)
protected void returnBrokenResourceObject(Object resource)
public void destroy()
Copyright © 2013. All rights reserved.