|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.util.rawserialization.JavaSerializedMessage
public class JavaSerializedMessage
Wrapper that converts rice.pastry.messaging.Message to rice.pastry.messageing.PRawMessage
Field Summary |
---|
Fields inherited from interface rice.p2p.commonapi.Message |
---|
HIGH_PRIORITY, LOW_PRIORITY, LOWEST_PRIORITY, MAX_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY |
Constructor Summary | |
---|---|
JavaSerializedMessage(Message msg)
|
Method Summary | |
---|---|
Message |
getMessage()
|
int |
getPriority()
Method which should return the priority level of this message. |
short |
getType()
|
void |
serialize(OutputBuffer buf)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JavaSerializedMessage(Message msg)
Method Detail |
---|
public short getType()
getType
in interface RawMessage
public void serialize(OutputBuffer buf) throws java.io.IOException
serialize
in interface RawMessage
java.io.IOException
public Message getMessage()
public int getPriority()
Message
getPriority
in interface Message
public java.lang.String toString()
toString
in class java.lang.Object
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |