|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rice.pastry.messaging.MessageDispatch
An object which remembers the mapping from names to MessageReceivers and dispatches messages by request.
Constructor Summary | |
MessageDispatch()
Constructor. |
Method Summary | |
boolean |
dispatchMessage(rice.pastry.messaging.Message msg)
Dispatches a message to the appropriate receiver. |
void |
registerReceiver(rice.pastry.messaging.Address address,
rice.pastry.messaging.MessageReceiver receiver)
Registers a receiver with the mail service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MessageDispatch()
Method Detail |
public void registerReceiver(rice.pastry.messaging.Address address, rice.pastry.messaging.MessageReceiver receiver)
receiver
- the receiver.public boolean dispatchMessage(rice.pastry.messaging.Message msg)
msg
- the message.
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |