|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An egg message port. Everyone egg has one message port that other eggs can use to send messages to the port's owner. To access another egg's port, declare a dependency on the other egg using the <uses> in the application descriptor. See the package documentation for the jegg.* package for more details.
Method Summary | |
java.lang.Object |
getId()
Return the ID of the egg that owns this port. |
java.lang.Class[] |
getInterface()
Return the set of message types understood by the egg associated with this message port. |
void |
send(Message m)
Deliver a message to the egg that owns this port. |
void |
send(java.lang.Object o)
Deliver an object as a message to the egg that owns this port. |
Method Detail |
public java.lang.Class[] getInterface()
public void send(java.lang.Object o) throws PortException
o
- the object to send to this port's owner. The
object will be delivered wrapped in a Message instance.
PortException
public void send(Message m) throws PortException
PortException
public java.lang.Object getId()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |