GetReplicaResult

class GetReplicaResult : GetResult

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

Functions

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.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val cas: Long

The Compare And Swap (CAS) value of the document at the time the content was retrieved.

Link copied to clipboard
val content: Content

The retrieved content. Useful for accessing the raw bytes of the document.

Link copied to clipboard
val expiry: Expiry

A value of Expiry.Unknown means the expiry is unknown because the withExpiry argument was false when getting the document.

Link copied to clipboard
val id: String

The document ID of the retrieved document.

Link copied to clipboard
val replica: Boolean

True if the result is from a replica; false if it's from the primary.