@InterfaceStability.Committed
@InterfaceAudience.Public
public interface Document<T>
Represents a Couchbase Server Document
which is stored in and retrieved from a AsyncBucket
.
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). |
String |
id()
The per-bucket unique ID of the
Document . |
com.couchbase.client.core.message.kv.MutationToken |
mutationToken()
The optional, opaque mutation token set after a successful mutation and if enabled on the environment.
|
long cas()
The last-known CAS value for the Document
(0 if not set).
int expiry()
The optional expiration time for the Document
(0 if not set).
com.couchbase.client.core.message.kv.MutationToken mutationToken()
The optional, opaque mutation token set after a successful mutation and if enabled on the environment.
Note that the mutation token is always null, unless they are explicitly enabled on the environment, the server version is supported (>= 4.0.0) and the mutation operation succeeded.
If set, it can be used for enhanced durability requirements, as well as optimized consistency for N1QL queries.
Copyright © 2014 Couchbase, Inc.