|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.evolveum.midpoint.xml.common.ObjectPool<T>
public abstract class ObjectPool<T>
Sample Class Doc
| Field Summary | |
|---|---|
static java.lang.String |
code_id
|
| Constructor Summary | |
|---|---|
ObjectPool()
|
|
ObjectPool(int initialSize)
|
|
| Method Summary | |
|---|---|
void |
checkin(T pooled)
Check-in a pooled object to the object pool. |
T |
checkout()
Checkout a pooled object, or create one if none are available. |
protected abstract T |
create()
Creates a new pool member. |
void |
dispose()
|
int |
numLocked()
|
int |
numUnlocked()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String code_id
| Constructor Detail |
|---|
public ObjectPool()
public ObjectPool(int initialSize)
| Method Detail |
|---|
public void dispose()
protected abstract T create()
public T checkout()
public void checkin(T pooled)
pooled - public int numLocked()
public int numUnlocked()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||