rice.p2p.past.messaging
Class CacheMessage
java.lang.Object
rice.p2p.past.messaging.PastMessage
rice.p2p.past.messaging.CacheMessage
- All Implemented Interfaces:
- Message, java.io.Serializable
- public class CacheMessage
- extends PastMessage
- Version:
- $Id: CacheMessage.java,v 1.3 2005/03/11 00:58:05 jeffh Exp $
- Author:
- Alan Mislove, Ansley Post, Peter Druschel
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
content
protected PastContent content
- DESCRIBE THE FIELD
CacheMessage
public CacheMessage(int uid,
PastContent content,
NodeHandle source,
Id dest)
- Constructor which takes a unique integer Id and the local id
- Parameters:
uid
- The unique idcontent
- DESCRIBE THE PARAMETERsource
- DESCRIBE THE PARAMETERdest
- DESCRIBE THE PARAMETER
getContent
public PastContent getContent()
- Method which returns the content
- Returns:
- The content
returnResponse
public void returnResponse(Continuation c)
- Method by which this message is supposed to return it's response.
- Specified by:
returnResponse
in class PastMessage
- Parameters:
c
- The continuation to return the reponse to.
toString
public java.lang.String toString()
- Returns a string representation of this message
- Returns:
- A string representing this message
Copyright © 2001-2005 - Rice Pastry.