|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.component.sjms.jms.ObjectPool<T>
public abstract class ObjectPool<T>
TODO Add Class documentation for ObjectPool
Field Summary | |
---|---|
protected org.slf4j.Logger |
logger
|
Constructor Summary | |
---|---|
ObjectPool()
|
|
ObjectPool(int poolSize)
|
Method Summary | |
---|---|
T |
borrowObject()
|
T |
borrowObject(long timeout)
|
protected abstract T |
createObject()
Implement to create new objects of type T when the pool is initialized empty. |
protected abstract void |
destroyObject(T t)
Clean up pool objects |
void |
drainPool()
|
void |
fillPool()
|
protected ReadWriteLock |
getLock()
Gets the ReadWriteLock value of lock for this instance of ObjectPool. |
int |
getMaxSize()
Gets the int value of maxSize for this instance of ObjectPool. |
void |
returnObject(T object)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.slf4j.Logger logger
Constructor Detail |
---|
public ObjectPool()
public ObjectPool(int poolSize)
Method Detail |
---|
public void fillPool()
public void drainPool() throws Exception
Exception
protected abstract T createObject() throws Exception
Exception
protected abstract void destroyObject(T t) throws Exception
Exception
public T borrowObject() throws Exception
Exception
public T borrowObject(long timeout) throws Exception
Exception
public void returnObject(T object) throws Exception
object
-
Exception
protected ReadWriteLock getLock()
public int getMaxSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |