|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.message.manager.BasicMessageManagerImpl
Basic implementation of a message manager. This message manager doesn't pool instances.
Field Summary |
Fields inherited from interface org.objectweb.dream.message.manager.MessageManager |
ITF_NAME |
Fields inherited from interface org.objectweb.dream.message.manager.MessageManagerAttributeController |
ITF_NAME |
Constructor Summary | |
BasicMessageManagerImpl()
|
Method Summary | |
Object |
createChunk(ChunkType type)
Allocates and returns a chunk of the specified type. |
Message |
createMessage(MessageType type)
Allocates and returns a message of the specified type. |
void |
deleteChunk(Object chunk)
Deletes a chunk. |
void |
deleteMessage(Message message)
Deletes a message. |
Object |
duplicateChunk(Object chunk,
boolean clone)
Duplicates a chunk. |
Message |
duplicateMessage(Message message,
boolean clone)
Duplicates a message. |
short |
getId()
Returns the manager's id. |
short |
getMessageManagerId()
Returns the message manager identifier. |
void |
setId(short id)
Sets the manager's id. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicMessageManagerImpl()
Method Detail |
public Message createMessage(MessageType type) throws UnknownChunkTypeError
MessageManager
ExtensibleMessage
) or not.
createMessage
in interface MessageManager
type
- the type of the message to be created.
UnknownChunkTypeError
- if one of the chunk type in the message type
is unknown by the manager (see MessageManager.createChunk(ChunkType)
).MessageManager.createMessage(MessageType)
public void deleteMessage(Message message)
MessageManager
deleteMessage
in interface MessageManager
message
- the message to be deleted.MessageManager.deleteMessage(Message)
public Message duplicateMessage(Message message, boolean clone)
MessageManager
MessageManager.deleteMessage(Message)
operation only
deletes the message when all the duplicated references have been released
duplicateMessage
in interface MessageManager
message
- the message to be duplicated.clone
- the duplication mode. false
for reference
duplication, true
for value duplication.
MessageManager.duplicateMessage(Message, boolean)
public Object createChunk(ChunkType type) throws UnknownChunkTypeError
MessageManager
ChunkType
, so if the
requesed chunk type is unknown, a UnknownChunkTypeError
is thrown
createChunk
in interface MessageManager
type
- the type of the chunk to be created.
UnknownChunkTypeError
- if the chunk type can not be resolved by the
manager (cannot find implementation).MessageManager.createChunk(ChunkType)
public void deleteChunk(Object chunk)
MessageManager
deleteChunk
in interface MessageManager
chunk
- the chunk to delete.MessageManager.deleteChunk(Object)
public Object duplicateChunk(Object chunk, boolean clone)
MessageManager
MessageManager.duplicateMessage(Message, boolean)
).
duplicateChunk
in interface MessageManager
chunk
- the chunk to be duplicated.clone
- the duplication mode.
MessageManager.duplicateChunk(Object, boolean)
public short getMessageManagerId()
MessageManager
getMessageManagerId
in interface MessageManager
MessageManager.getMessageManagerId()
public short getId()
MessageManagerAttributeController
getId
in interface MessageManagerAttributeController
MessageManagerAttributeController.getId()
public void setId(short id)
MessageManagerAttributeController
setId
in interface MessageManagerAttributeController
id
- the id to set.MessageManagerAttributeController.setId(short)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |