public abstract class AbstractDocument<T> extends java.lang.Object implements Document<T>
Common parent implementation of a Document.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDocument(java.lang.String id,
int expiry,
T content,
long cas) |
| Modifier and Type | Method and Description |
|---|---|
long |
cas()
The last-known CAS value for the
Document (0 if not set). |
T |
content()
The content of the
Document. |
int |
expiry()
The optional expiration time for the
Document (0 if not set). |
java.lang.String |
id()
The per-bucket unique ID of the
Document. |
java.lang.String |
toString() |
protected AbstractDocument(java.lang.String id,
int expiry,
T content,
long cas)
public java.lang.String id()
DocumentThe per-bucket unique ID of the Document.
public long cas()
DocumentThe last-known CAS value for the Document (0 if not set).
public int expiry()
DocumentThe optional expiration time for the Document (0 if not set).
public java.lang.String toString()
toString in class java.lang.Object