|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.p2p.glacier.v2.DebugContent
public class DebugContent
| Field Summary | |
|---|---|
protected boolean |
isMutable
|
protected Id |
myId
|
protected byte[] |
payload
|
protected long |
version
|
| Constructor Summary | |
|---|---|
DebugContent(Id id,
boolean isMutable,
long version,
byte[] payload)
|
|
| Method Summary | |
|---|---|
PastContent |
checkInsert(Id id,
PastContent existingContent)
Checks if a insert operation should be allowed. |
GCPastContentHandle |
getHandle(GCPast local,
long expiration)
Produces a handle for this content object. |
PastContentHandle |
getHandle(Past local)
Produces a handle for this content object. |
Id |
getId()
Returns the Id under which this object is stored in Past. |
GCPastMetadata |
getMetadata(long expiration)
Returns the metadata which should be stored with this object. |
byte[] |
getPayload()
|
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. |
boolean |
isMutable()
States if this content object is mutable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Id myId
protected boolean isMutable
protected long version
protected transient byte[] payload
| Constructor Detail |
|---|
public DebugContent(Id id,
boolean isMutable,
long version,
byte[] payload)
| Method Detail |
|---|
public PastContent checkInsert(Id id,
PastContent existingContent)
throws PastException
PastContent
checkInsert in interface PastContent
id - the key identifying the object
PastExceptionpublic long getVersion()
GCPastContent
getVersion in interface GCPastContent
public PastContentHandle getHandle(Past local)
PastContent
getHandle in interface PastContent
public GCPastContentHandle getHandle(GCPast local,
long expiration)
GCPastContent
getHandle in interface GCPastContent
public Id getId()
PastContent
getId in interface PastContent
public boolean isMutable()
PastContent
isMutable in interface PastContent
public byte[] getPayload()
public GCPastMetadata getMetadata(long expiration)
GCPastContent
getMetadata in interface GCPastContent
|
ePOST API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||