GetReplicaResult

class GetReplicaResult : GetResult

The result of retrieving a full document, possibly from a replica instead of the primary.

Functions

contentAs
Link copied to clipboard
inline fun <T> contentAs(transcoder: Transcoder? = null): T
Returns the document content after transcoding it into the type specified by the type parameter.
toString
Link copied to clipboard
open override fun toString(): String

Properties

cas
Link copied to clipboard
val cas: Long
The Compare And Swap (CAS) value of the document at the time the content was retrieved.
content
Link copied to clipboard
val content: Content
The retrieved content.
expiry
Link copied to clipboard
val expiry: Expiry?
A null value means the expiry is unknown because the withExpiry argument was false when getting the document.
id
Link copied to clipboard
val id: String
The document ID of the retrieved document.
replica
Link copied to clipboard
val replica: Boolean
True if the result is from a replica; false if it's from the primary.