rice.pastry.messaging
Class MessageDispatch

java.lang.Object
  extended byrice.pastry.messaging.MessageDispatch

public class MessageDispatch
extends java.lang.Object

An object which remembers the mapping from names to MessageReceivers and dispatches messages by request.


Field Summary
static int BUFFER_SIZE
           
 
Constructor Summary
MessageDispatch()
          Constructor.
 
Method Summary
protected  void deliverBuffered(Address address)
           
 boolean dispatchMessage(Message msg)
          Dispatches a message to the appropriate receiver.
 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

BUFFER_SIZE

public static int BUFFER_SIZE
Constructor Detail

MessageDispatch

public MessageDispatch()
Constructor.

Method Detail

registerReceiver

public void registerReceiver(Address address,
                             MessageReceiver receiver)
Registers a receiver with the mail service.

Parameters:
receiver - the receiver.

dispatchMessage

public boolean dispatchMessage(Message msg)
Dispatches a message to the appropriate receiver.

Parameters:
msg - the message.
Returns:
true if message could be dispatched, false otherwise.

deliverBuffered

protected void deliverBuffered(Address address)





Imprint-Dataprotection