|
||||||||||
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 LinkedList |
pool
The pool data structure |
Fields inherited from class org.jboss.ejb3.pool.AbstractPool |
---|
container, createCount, injectors, removeCount |
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(Class[] initTypes,
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, 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 LinkedList pool
protected int maxSize
Constructor Detail |
---|
public StrictMaxPool()
Method Detail |
---|
public void initialize(Container container, int maxSize, long timeout)
initialize
in interface Pool
initialize
in class AbstractPool
public int getCurrentSize()
public int getAvailableCount()
public int getMaxSize()
public void setMaxSize(int maxSize)
setMaxSize
in interface Pool
setMaxSize
in class AbstractPool
public BeanContext get()
public BeanContext get(Class[] initTypes, Object[] initValues)
public void release(BeanContext ctx)
ctx
- public void destroy()
Pool
public void discard(BeanContext ctx)
Pool
discard
in interface Pool
discard
in class AbstractPool
public void remove(BeanContext ctx)
Pool
remove
in interface Pool
remove
in class AbstractPool
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |