|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.message.AbstractExtensibleMessage
org.objectweb.dream.message.ExtensibleMessageImpl
Implementation of extensible message, using a LinkedList
to
store sub message
Field Summary |
Fields inherited from class org.objectweb.dream.message.AbstractExtensibleMessage |
chunkNames, chunks, chunkTypes, messageManagerId, referenceCounter |
Fields inherited from interface org.objectweb.dream.message.Message |
EMPTY_MESSAGE_ARRAY |
Fields inherited from interface org.objectweb.dream.message.MessageType |
EMPTY_MESSAGE_TYPE_ARRAY |
Fields inherited from interface org.objectweb.dream.util.EmptyStringArray |
EMPTY_STRING_ARRAY |
Constructor Summary | |
ExtensibleMessageImpl()
No-arg constructor, used for instance pooling |
|
ExtensibleMessageImpl(short messageManagerId)
Constructor. |
Method Summary | |
void |
addSubMessage(Message message)
Adds a sub message in this message. |
Iterator |
getSubMessageIterator()
Returns an Iterator that iterate over the sub messages of
this message. |
Message[] |
getSubMessages()
Returns an (eventually empty) array containing the sub messages of this message. |
MessageType[] |
getSubMessageTypes()
Returns an (eventually empty) array containing the types of the sub messages of messages of this type. |
Iterator |
getSubMessageTypesIterator()
Returns an iterator over the types of the sub messages of messages of this type. |
boolean |
isSubTypeOf(MessageType t)
Returns true if this message type if a sub type of the given
message type. |
void |
readExternal(ObjectInput in)
|
void |
recycle()
Recycles the object. |
boolean |
removeSubMessage(Message msg)
Removes the specified sub message. |
void |
removeSubMessages()
Removes every sub messages of this message. |
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class org.objectweb.dream.message.AbstractExtensibleMessage |
addChunk, decrementReferenceCounter, getChunk, getChunkNames, getChunkNamesIterator, getChunkType, getMessageManagerId, getMessageType, incrementReferenceCounter, isEmpty, readChunksState, removeChunk, setMessageManagerId, transfertChunkStates, writeChunksState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExtensibleMessageImpl()
public ExtensibleMessageImpl(short messageManagerId)
messageManagerId
- the id of the message manager that creates this
message.Method Detail |
public void addSubMessage(Message message)
ExtensibleMessage
message
- the message to add.ExtensibleMessage.addSubMessage(Message)
public boolean removeSubMessage(Message msg)
ExtensibleMessage
msg
- the message to be removed.
true
if the message has been removed,
false
otherwise.ExtensibleMessage.removeSubMessage(Message)
public void removeSubMessages()
ExtensibleMessage
ExtensibleMessage.removeSubMessages()
public Iterator getSubMessageIterator()
Message
Iterator
that iterate over the sub messages of
this message.
Message.getSubMessageIterator()
public Message[] getSubMessages()
Message
Message.getSubMessages()
public MessageType[] getSubMessageTypes()
MessageType
MessageType.getSubMessageTypes()
public Iterator getSubMessageTypesIterator()
MessageType
MessageType.getSubMessageTypesIterator()
public boolean isSubTypeOf(MessageType t)
MessageType
true
if this message type if a sub type of the given
message type.
t
- a message type
true
if this message type if a sub type of the given
message type.MessageType.isSubTypeOf(MessageType)
public void recycle()
Recyclable
recycle
in interface Recyclable
recycle
in class AbstractExtensibleMessage
Recyclable.recycle()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Externalizable.readExternal(ObjectInput)
public void writeExternal(ObjectOutput out) throws IOException
IOException
Externalizable.writeExternal(ObjectOutput)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |