rice.tutorial.rawserialization
Class MyMsg
java.lang.Object
rice.tutorial.rawserialization.MyMsg
- All Implemented Interfaces:
- java.io.Serializable, Message, RawMessage
public class MyMsg
- extends java.lang.Object
- implements RawMessage
An example message.
- Author:
- Jeff Hoye
- See Also:
- Serialized Form
Field Summary |
protected static short |
TYPE
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
protected static final short TYPE
- See Also:
- Constant Field Values
MyMsg
public MyMsg(Id from,
Id to)
- Constructor.
MyMsg
public MyMsg(InputBuffer buf,
Endpoint endpoint)
throws java.io.IOException
- Throws:
java.io.IOException
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
getType
public short getType()
- Specified by:
getType
in interface RawMessage
serialize
public void serialize(OutputBuffer buf)
throws java.io.IOException
- Specified by:
serialize
in interface RawMessage
- Throws:
java.io.IOException
Copyright © 2001-2005 - Rice Pastry.