|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jegg.impl.MessageImpl
Used to wrap an application message that is being sent from one egg to another.
The Message instance not wraps the sending egg's concrete message object, but also holds a reference to the sending egg's own message port and the priority of the message.
An egg can use a special base-class method, Egg.createMessage()
, to wrap an application message before writing it to
a message port.
Constructor Summary | |
MessageImpl(java.lang.Object m,
Port p,
Priority pr)
Create a JEgg message. |
Method Summary | |
Port |
getFrom()
Return the port of the egg that sent this message. |
java.lang.Object |
getMessage()
Return the application message. |
Priority |
getPriority()
Return the dispatch priority of this message. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MessageImpl(java.lang.Object m, Port p, Priority pr)
m
- the application message being sent.p
- the port of the sending egg.pr
- the message's dispatch priority.Method Detail |
public final Port getFrom()
Message
getFrom
in interface Message
public final java.lang.Object getMessage()
Message
getMessage
in interface Message
public final Priority getPriority()
Message
getPriority
in interface Message
public final java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |