|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.p2p.past.messaging.PastMessage
rice.p2p.past.messaging.MessageLostMessage
public class MessageLostMessage
Field Summary | |
---|---|
protected NodeHandle |
hint
DESCRIBE THE FIELD |
protected Id |
id
DESCRIBE THE FIELD |
protected java.lang.String |
messageString
DESCRIBE THE FIELD |
static short |
TYPE
DESCRIBE THE FIELD |
Fields inherited from class rice.p2p.past.messaging.PastMessage |
---|
dest, isResponse, source |
Fields inherited from interface rice.p2p.commonapi.Message |
---|
HIGH_PRIORITY, LOW_PRIORITY, MAX_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY |
Constructor Summary | |
---|---|
MessageLostMessage(int uid,
NodeHandle local,
Id id,
Message message,
NodeHandle hint)
Constructor which takes a unique integer Id and the local id |
Method Summary | |
---|---|
short |
getType()
Gets the Type attribute of the MessageLostMessage object |
void |
returnResponse(Continuation c,
Environment env,
java.lang.String instance)
Method by which this message is supposed to return it's response - in this case, it lets the continuation know that a the message was lost via the receiveException method. |
void |
serialize(OutputBuffer buf)
DESCRIBE THE METHOD |
java.lang.String |
toString()
Returns a string representation of this message |
Methods inherited from class rice.p2p.past.messaging.PastMessage |
---|
addHop, getDestination, getPriority, getSource, getUID, isResponse, setResponse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Id id
protected NodeHandle hint
protected java.lang.String messageString
public static final short TYPE
Constructor Detail |
---|
public MessageLostMessage(int uid, NodeHandle local, Id id, Message message, NodeHandle hint)
uid
- The unique idlocal
- The local nodehandleid
- DESCRIBE THE PARAMETERmessage
- DESCRIBE THE PARAMETERhint
- DESCRIBE THE PARAMETERMethod Detail |
---|
public short getType()
public void returnResponse(Continuation c, Environment env, java.lang.String instance)
returnResponse
in class PastMessage
c
- The continuation to return the reponse to.env
- DESCRIBE THE PARAMETERinstance
- DESCRIBE THE PARAMETERpublic java.lang.String toString()
toString
in class java.lang.Object
public void serialize(OutputBuffer buf) throws java.io.IOException
serialize
in interface RawMessage
serialize
in class PastMessage
buf
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTION
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |