|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.pastry.messaging.MessageDispatch
An object which remembers the mapping from names to MessageReceivers and dispatches messages by request.
Field Summary | |
static int |
BUFFER_SIZE
DESCRIBE THE FIELD |
Constructor Summary | |
MessageDispatch()
Constructor. |
Method Summary | |
protected void |
deliverBuffered(Address address)
DESCRIBE THE METHOD |
boolean |
dispatchMessage(Message msg)
Dispatches a message to the appropriate receiver. |
MessageReceiver |
getDestination(Message msg)
Gets the Destination attribute of the MessageDispatch object |
MessageReceiver |
getDestinationByAddress(Address addr)
Gets the DestinationByAddress attribute of the MessageDispatch object |
void |
registerReceiver(Address address,
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 |
Field Detail |
public static int BUFFER_SIZE
Constructor Detail |
public MessageDispatch()
Method Detail |
public MessageReceiver getDestination(Message msg)
msg
- DESCRIBE THE PARAMETER
public MessageReceiver getDestinationByAddress(Address addr)
addr
- DESCRIBE THE PARAMETER
public void registerReceiver(Address address, MessageReceiver receiver)
receiver
- the receiver.address
- DESCRIBE THE PARAMETERpublic boolean dispatchMessage(Message msg)
msg
- the message.
protected void deliverBuffered(Address address)
address
- DESCRIBE THE PARAMETER
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |