ePOST API

rice.p2p.past.gc
Interface GCPastContent

All Superinterfaces:
PastContent, java.io.Serializable
All Known Implementing Classes:
Aggregate, DebugContent, Delivery, Receipt, SignedData, Undeliverable

public interface GCPastContent
extends PastContent

Version:
$Id: GCPastContent.java 2302 2005-03-11 00:58:26Z jeffh $
Author:
Alan Mislove, Andreas Haeberlen

Method Summary
 GCPastContentHandle getHandle(GCPast local, long expiration)
          Produces a handle for this content object.
 GCPastMetadata getMetadata(long expiration)
          Returns the metadata which should be stored with this object.
 long getVersion()
          Returns the version number associated with this PastContent object - version numbers are designed to be monotonically increasing numbers which signify different versions of the same object.
 
Methods inherited from interface rice.p2p.past.PastContent
checkInsert, getHandle, getId, isMutable
 

Method Detail

getVersion

long getVersion()
Returns the version number associated with this PastContent object - version numbers are designed to be monotonically increasing numbers which signify different versions of the same object.

Returns:
The version number of this object

getHandle

GCPastContentHandle getHandle(GCPast local,
                              long expiration)
Produces a handle for this content object. The handle is retrieved and returned to the client as a result of the Past.lookupHandles() method.

Parameters:
The - local GCPast service which the content is on.
Returns:
the handle

getMetadata

GCPastMetadata getMetadata(long expiration)
Returns the metadata which should be stored with this object. Allows applications to add arbitrary items into the object's metadata.

Parameters:
The - local GCPast service which the content is on.
Returns:
the handle

ePOST API

Copyright © 2001-2005 - Rice Pastry.