org.objectweb.dream.message
Class MessageManagerPoolingImpl
java.lang.Object
org.objectweb.dream.AbstractComponent
org.objectweb.dream.message.MessageManagerImpl
org.objectweb.dream.message.MessageManagerPoolingImpl
- All Implemented Interfaces:
- ContextualBindingController, NeedAsyncStartController, PrepareStopLifeCycleController, Loggable, MessageManager, MessageManagerAttributeController, RecyclableFactory, AttributeController, BindingController, LifeCycleController
public class MessageManagerPoolingImpl
- extends MessageManagerImpl
- implements RecyclableFactory
Extension of the basic message manager. This implementation recycle messages
and chunks in object pools.
Methods inherited from class org.objectweb.dream.message.MessageManagerImpl |
addChunk, addOrReplaceChunk, addSubMessage, checkNull, checkNull, checkNull, checkOwner, checkOwner, checkSubMessage, cloneChunk, createChunk, deleteChunk, deleteMessage, duplicateMessage, getChunk, getChunkFactory, getChunkNameIterator, getDoCheck, getSubMessageIterator, isEmpty, removeChunk, removeSubMessage, setDoCheck |
Methods inherited from class org.objectweb.dream.AbstractComponent |
beforeFirstStart, bindFc, getFcNeedAsyncStart, getFcState, initComponent, lookupFc, prepareStopFc, setLogger, startFc, stopFc, unbindFc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageManagerPoolingImpl
public MessageManagerPoolingImpl()
createMessage
public Message createMessage()
- Description copied from interface:
MessageManager
- Creates a new message and returns a reference to the newly created message.
- Specified by:
createMessage
in interface MessageManager
- Overrides:
createMessage
in class MessageManagerImpl
- Returns:
- a reference to a newly created message.
- See Also:
MessageManager.createMessage()
recycleMessageInstance
protected void recycleMessageInstance(Message message)
- Overrides:
recycleMessageInstance
in class MessageManagerImpl
- See Also:
MessageManagerImpl.recycleMessageInstance(Message)
createChunkFactory
protected <T extends AbstractChunk<T>> ChunkFactoryReference<T> createChunkFactory(Class<T> chunkType)
- Overrides:
createChunkFactory
in class MessageManagerImpl
- See Also:
MessageManagerImpl.createChunkFactory(Class)
newInstance
public Recyclable newInstance()
- Description copied from interface:
RecyclableFactory
- Creates and returns a new instance of objects pooled by an object pool.
- Specified by:
newInstance
in interface RecyclableFactory
- Returns:
- an instance that is pooled by an object pool.
- See Also:
RecyclableFactory.newInstance()
listFc
public String[] listFc()
- Specified by:
listFc
in interface BindingController
- Overrides:
listFc
in class MessageManagerImpl
- See Also:
BindingController.listFc()
bindFc
public void bindFc(String clientItfName,
Object serverItf)
throws NoSuchInterfaceException,
IllegalBindingException,
IllegalLifeCycleException
- Specified by:
bindFc
in interface BindingController
- Overrides:
bindFc
in class AbstractComponent
- Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
- See Also:
BindingController.bindFc(String,
Object)
Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.