GetReplicaResult

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

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

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

Link copied to clipboard

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

True if the result is from a replica; false if it's from 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