|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.abdera.protocol.util.PoolManager<T>
public abstract class PoolManager<T>
Implements a simple pool manager. By default, an upper limit to the pool is set at 25 entries. New items can always be created.
Constructor Summary | |
---|---|
protected |
PoolManager()
|
protected |
PoolManager(int max)
|
Method Summary | |
---|---|
protected T |
getInstance()
|
protected abstract T |
internalNewInstance()
|
void |
release(T t)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.abdera.protocol.ItemManager |
---|
get |
Constructor Detail |
---|
protected PoolManager()
protected PoolManager(int max)
Method Detail |
---|
protected T getInstance()
public void release(T t)
release
in interface ItemManager<T>
protected abstract T internalNewInstance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |