|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defined methods to dynamically add or remove chunks and sub
messages to this message. These methods are not defined in the
Message
interface for efficency reasons.
Field Summary |
Fields inherited from interface org.objectweb.dream.message.Message |
EMPTY_MESSAGE_ARRAY |
Method Summary | |
void |
addChunk(String name,
ChunkType chkType,
Object chunk)
Adds a chunk in this message. |
void |
addSubMessage(Message message)
Adds a sub message in this message. |
Object |
removeChunk(String name)
Removes and returns the chunk with the specified name |
boolean |
removeSubMessage(Message message)
Removes the specified sub message. |
void |
removeSubMessages()
Removes every sub messages of this message. |
Methods inherited from interface org.objectweb.dream.message.Message |
getChunk, getMessageManagerId, getMessageType, getSubMessageIterator, getSubMessages, setMessageManagerId, transfertChunkStates |
Methods inherited from interface org.objectweb.dream.pool.Recyclable |
recycle |
Method Detail |
public void addChunk(String name, ChunkType chkType, Object chunk) throws ChunkAlreadyExistsException
name
- the name of the new chunkchkType
- the type of the new chunkchunk
- the chunk instance.
ChunkAlreadyExistsException
- if this message has already a chunk
with the same namepublic Object removeChunk(String name)
name
- the name of the chunk to remove
null
if no chunk with the
specified name can be found.public void addSubMessage(Message message)
message
- the message to add.public boolean removeSubMessage(Message message)
message
- the message to be removed.
true
if the message has been removed,
false
otherwise.public void removeSubMessages()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |