|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.ejb3.pool.AbstractPool
org.jboss.ejb3.pool.StrictMaxPool
public class StrictMaxPool
| Field Summary | |
|---|---|
static int |
DEFAULT_MAX_SIZE
|
static long |
DEFAULT_TIMEOUT
|
protected int |
maxSize
The maximum number of instances allowed in the pool |
protected java.util.LinkedList |
pool
The pool data structure |
| Fields inherited from class org.jboss.ejb3.pool.AbstractPool |
|---|
container, injectors |
| Constructor Summary | |
|---|---|
StrictMaxPool()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroy the pool. |
void |
discard(BeanContext ctx)
Discard the bean. |
BeanContext |
get()
Get an instance without identity. |
BeanContext |
get(java.lang.Class[] initTypes,
java.lang.Object[] initValues)
|
int |
getAvailableCount()
|
int |
getCurrentSize()
|
int |
getMaxSize()
|
void |
initialize(Container container,
int maxSize,
long timeout)
super.initialize() must have been called in advance |
void |
release(BeanContext ctx)
Return an instance after invocation. |
void |
remove(BeanContext ctx)
Destroy bean. |
void |
setMaxSize(int maxSize)
|
| Methods inherited from class org.jboss.ejb3.pool.AbstractPool |
|---|
create, create, doRemove, getCreateCount, getRemoveCount, setInjectors |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MAX_SIZE
public static final long DEFAULT_TIMEOUT
protected java.util.LinkedList pool
protected int maxSize
| Constructor Detail |
|---|
public StrictMaxPool()
| Method Detail |
|---|
public void initialize(Container container,
int maxSize,
long timeout)
initialize in interface Poolinitialize in class AbstractPoolpublic int getCurrentSize()
public int getAvailableCount()
public int getMaxSize()
public void setMaxSize(int maxSize)
setMaxSize in interface PoolsetMaxSize in class AbstractPoolpublic BeanContext get()
public BeanContext get(java.lang.Class[] initTypes,
java.lang.Object[] initValues)
public void release(BeanContext ctx)
ctx - public void destroy()
Pool
public void discard(BeanContext ctx)
Pool
discard in interface Pooldiscard in class AbstractPoolpublic void remove(BeanContext ctx)
Pool
remove in interface Poolremove in class AbstractPool
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||