|
SAP NetWeaver 7.31 Enterprise Portal (SP 16) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.portal.prt.util.AbstractPool
public abstract class AbstractPool
Manages a pool of objects.
Unused objects are removed after a certain period of time.
The maximum number of objects managed by the pool is by default 100.
This property can be overriden when constructing the pool
| Field Summary | |
|---|---|
protected int |
mm_maxPoolSize
|
protected List |
mm_unlocked
Contains pool objects that are available for use |
| Constructor Summary | |
|---|---|
AbstractPool(int initialCapacity)
Construct a pool given an initial capacity and the maximum number set to 100 to manage |
|
AbstractPool(int initialCapacity,
int nbInitialInstance)
Construct a pool given an initial capacity and the number of initial items to manage |
|
AbstractPool(int initialCapacity,
int nbInitialInstance,
int maxNumberObjects)
Construct a pool given an initial capacity and the maximum number of items to manage |
|
| Method Summary | |
|---|---|
protected abstract Object |
createPoolObject()
Factory method to create pool objects |
protected abstract void |
expirePoolObject(Object o)
Callback when object are not managed anymore by the pool. |
Object |
getPoolObject()
Returns an object from the pool. |
void |
releasePoolObject(Object o)
Tells the pool to release an object and make it available in the pool. |
protected void |
updateController(Object buffer,
boolean add)
|
protected abstract boolean |
validatePoolObject(Object o)
Method called to validate an object that has been put back in the pool |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int mm_maxPoolSize
protected List mm_unlocked
| Constructor Detail |
|---|
public AbstractPool(int initialCapacity)
initialCapacity - the initial container capacity
public AbstractPool(int initialCapacity,
int nbInitialInstance)
initialCapacity - the initial container capacity. You should here choose
a value that is as close as the given maxNumberObjects.nbInitialInstance - the initial number of objects to manage in the pool
public AbstractPool(int initialCapacity,
int nbInitialInstance,
int maxNumberObjects)
initialCapacity - the initial container capacity. You should here choose
a value that is as close as the given maxNumberObjects.nbInitialInstance - the initial number of objects to manage in the poolmaxNumberObjects - the maximum number of objects to manage in the pool. value -1 means infinite.| Method Detail |
|---|
protected abstract Object createPoolObject()
throws Exception
Exceptionprotected abstract boolean validatePoolObject(Object o)
o - the object to validate
protected abstract void expirePoolObject(Object o)
o - the object that is to be expired
public Object getPoolObject()
throws Exception
Exceptionpublic void releasePoolObject(Object o)
o - the object to release.
protected void updateController(Object buffer,
boolean add)
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.31 Enterprise Portal (SP 16) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||