Package org.jboss.as.ejb3.pool
Class AbstractPool<T>
- java.lang.Object
-
- org.jboss.as.ejb3.pool.AbstractPool<T>
-
- All Implemented Interfaces:
Pool<T>
- Direct Known Subclasses:
StrictMaxPool
public abstract class AbstractPool<T> extends Object implements Pool<T>
The base of all pool implementations.- Version:
- $Revision$
- Author:
- Bill Burke, Carlo de Wolf
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPool(StatelessObjectFactory<T> factory)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Tcreate()protected voiddestroy(T bean)protected voiddoRemove(T bean)Remove the bean context and invoke any callbacks and track the remove countintgetCreateCount()intgetRemoveCount()protected voidremove(T bean)Deprecated.abstract voidsetMaxSize(int maxSize)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.ejb3.pool.Pool
discard, get, getAvailableCount, getCurrentSize, getMaxSize, release, start, stop
-
-
-
-
Constructor Detail
-
AbstractPool
protected AbstractPool(StatelessObjectFactory<T> factory)
-
-
Method Detail
-
getCreateCount
public int getCreateCount()
- Specified by:
getCreateCountin interfacePool<T>
-
getRemoveCount
public int getRemoveCount()
- Specified by:
getRemoveCountin interfacePool<T>
-
setMaxSize
public abstract void setMaxSize(int maxSize)
- Specified by:
setMaxSizein interfacePool<T>
-
create
protected T create()
-
remove
@Deprecated protected void remove(T bean)
Deprecated.
-
destroy
protected void destroy(T bean)
-
doRemove
protected void doRemove(T bean)
Remove the bean context and invoke any callbacks and track the remove count- Parameters:
bean-
-
-