org.jboss.ejb3
Class InfinitePool
java.lang.Object
org.jboss.ejb3.pool.AbstractPool
org.jboss.ejb3.InfinitePool
- All Implemented Interfaces:
- Pool
public class InfinitePool
- extends AbstractPool
A pool that has no constraints.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InfinitePool
public InfinitePool()
destroy
public void destroy()
- Description copied from interface:
Pool
- Destroy the pool.
get
public BeanContext<?> get()
- Description copied from interface:
Pool
- Creates if no object is available in pool. ejbCreate will be called if created
get
public BeanContext<?> get(java.lang.Class[] initTypes,
java.lang.Object[] initValues)
getAvailableCount
public int getAvailableCount()
getCurrentSize
public int getCurrentSize()
getMaxSize
public int getMaxSize()
release
public void release(BeanContext ctx)
- Description copied from interface:
Pool
- Put bean back in pool
remove
public void remove(BeanContext ctx)
- Description copied from interface:
Pool
- Destroy bean. ejbRemove callback is executed
- Specified by:
remove in interface Pool- Overrides:
remove in class AbstractPool
setMaxSize
public void setMaxSize(int maxSize)
- Specified by:
setMaxSize in interface Pool- Specified by:
setMaxSize in class AbstractPool