rice.tutorial.rawserialization
Class MyMsg
java.lang.Object
rice.tutorial.rawserialization.MyMsg
- All Implemented Interfaces:
- Serializable, Message, RawMessage, RawSerializable
public class MyMsg
- extends Object
- implements RawMessage
An example message.
- Author:
- Jeff Hoye
- See Also:
- Serialized Form
|
Field Summary |
protected static short |
TYPE
|
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 IOException
- Deserializing constructor. This does the "real" deserialization.
- Parameters:
buf - endpoint -
- Throws:
IOException
toString
public String toString()
- Overrides:
toString in class 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 IOException
- Specified by:
serialize in interface RawSerializable
- Throws:
IOException
Copyright © 2010. All Rights Reserved.