|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.AbstractComponent
org.objectweb.dream.pool.ObjectPoolImpl
This class provides an implementation of message managers for non extensible messages. It pools message instances.
The class of messages to be managed is given using the
NonExtensibleMessageManagerAttributeController
.
Field Summary |
Fields inherited from class org.objectweb.dream.AbstractComponent |
bindingLogger, componentDesc, fcState, firstStart, lifeCycleLogger, logger, weaveableC |
Fields inherited from interface org.objectweb.dream.pool.ObjectPool |
ITF_NAME |
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController |
STARTED, STOPPED |
Constructor Summary | |
ObjectPoolImpl()
|
Method Summary | |
int |
getCapacity()
Returns the object pool capacity. |
String |
getObjectClassName()
Returns the class name of objects that are managed by the pool to which this interface belongs. |
String[] |
listFc()
|
Recyclable |
newInstance()
Returns a new instance of object. |
void |
recycleInstance(Recyclable recyclable)
Recycles the object so that it can be reused. |
void |
setCapacity(int capacity)
Sets the object pool capacity. |
void |
setObjectClassName(String name)
Sets the class name of objects that are managed by the pool to which this interface belongs. |
Methods inherited from class org.objectweb.dream.AbstractComponent |
beforeFirstStart, bindFc, getFcState, initComponent, lookupFc, setLogger, startFc, stopFc, unbindFc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObjectPoolImpl()
Method Detail |
public Recyclable newInstance()
ObjectPool
newInstance
in interface ObjectPool
ObjectPool.newInstance()
public void recycleInstance(Recyclable recyclable)
ObjectPool
recycleInstance
in interface ObjectPool
recyclable
- the object to be recycled.ObjectPool.recycleInstance(Recyclable)
public int getCapacity()
ObjectPoolAttributeController
getCapacity
in interface ObjectPoolAttributeController
ObjectPoolAttributeController.getCapacity()
public void setCapacity(int capacity)
ObjectPoolAttributeController
setCapacity
in interface ObjectPoolAttributeController
capacity
- the object pool capacity.ObjectPoolAttributeController.setCapacity(int)
public String getObjectClassName()
ObjectPoolAttributeController
getObjectClassName
in interface ObjectPoolAttributeController
ObjectPoolAttributeController.getObjectClassName()
public void setObjectClassName(String name)
ObjectPoolAttributeController
setObjectClassName
in interface ObjectPoolAttributeController
name
- the class name of managed objects.ObjectPoolAttributeController.setObjectClassName(String)
public String[] listFc()
listFc
in interface BindingController
BindingController.listFc()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |