|
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.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, MAX_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY |
Constructor Summary | |
JavaSerializedMessage(Message msg)
Constructor for JavaSerializedMessage. |
Method Summary | |
Message |
getMessage()
Gets the Message attribute of the JavaSerializedMessage object |
byte |
getPriority()
Gets the Priority attribute of the JavaSerializedMessage object |
short |
getType()
Gets the Type attribute of the JavaSerializedMessage object |
void |
serialize(OutputBuffer buf)
DESCRIBE THE METHOD |
java.lang.String |
toString()
DESCRIBE THE METHOD |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JavaSerializedMessage(Message msg)
msg
- DESCRIBE THE PARAMETERMethod Detail |
public short getType()
getType
in interface RawMessage
public Message getMessage()
public byte getPriority()
getPriority
in interface Message
public void serialize(OutputBuffer buf) throws java.io.IOException
serialize
in interface RawMessage
buf
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTIONpublic java.lang.String toString()
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |