Rice Pastry API

rice.tutorial.deterministicsimulator
Class MyMsg

java.lang.Object
  extended by rice.tutorial.deterministicsimulator.MyMsg
All Implemented Interfaces:
java.io.Serializable, Message

public class MyMsg
extends java.lang.Object
implements Message

An example message.

Author:
Jeff Hoye
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface rice.p2p.commonapi.Message
DEFAULT_PRIORITY, HIGH_PRIORITY, LOW_PRIORITY, LOWEST_PRIORITY, MAX_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY
 
Constructor Summary
MyMsg(Id from, Id to)
          Constructor.
 
Method Summary
 int getPriority()
          Use low priority to prevent interference with overlay maintenance traffic.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MyMsg

public MyMsg(Id from,
             Id to)
Constructor.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPriority

public int getPriority()
Use low priority to prevent interference with overlay maintenance traffic.

Specified by:
getPriority in interface Message
Returns:
This message's priority

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection