rice.tutorial.rawserialization2
Class MyMsg
java.lang.Object
rice.p2p.past.messaging.PastMessage
rice.p2p.past.messaging.ContinuationMessage
rice.p2p.past.messaging.LookupMessage
rice.tutorial.rawserialization2.MyMsg
- All Implemented Interfaces:
- Serializable, Continuation, Message, RawMessage, RawSerializable
public class MyMsg
- extends LookupMessage
An example message.
- Author:
- Jeff Hoye
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface rice.Continuation |
Continuation.ErrorContinuation<R,E extends Exception>, Continuation.ExternalContinuation<R,E extends Exception>, Continuation.ExternalContinuationRunnable<R,E extends Exception>, Continuation.ExternalRunnable, Continuation.ListenerContinuation<R,E extends Exception>, Continuation.MultiContinuation, Continuation.NamedContinuation, Continuation.SimpleContinuation, Continuation.StandardContinuation<R,E extends Exception> |
|
Method Summary |
int |
getPriority()
Use low priority to prevent interference with overlay maintenance traffic. |
void |
serialize(OutputBuffer buf)
Deprecated to cause warnings. |
String |
toString()
Returns a string representation of this message |
MyMsg
public MyMsg(NodeHandle from,
Id to)
- Constructor.
toString
public String toString()
- Description copied from class:
LookupMessage
- Returns a string representation of this message
- Overrides:
toString in class LookupMessage
- Returns:
- A string representing this message
getPriority
public int getPriority()
- Use low priority to prevent interference with overlay maintenance traffic.
- Specified by:
getPriority in interface Message- Overrides:
getPriority in class PastMessage
- Returns:
- This message's priority
serialize
public void serialize(OutputBuffer buf)
throws IOException
- Description copied from class:
ContinuationMessage
- Deprecated to cause warnings.
use serialize(OutputBuffer buf, boolean javaSerialize)
- Specified by:
serialize in interface RawSerializable- Overrides:
serialize in class LookupMessage
- Throws:
IOException
Copyright © 2010. All Rights Reserved.