get Replica
suspend fun getReplica(id: String, strategy: GetReplicaStrategy = GetReplicaStrategy.any(), common: CommonOptions = CommonOptions.Default): GetReplicaResult
Reads a document from a replica.
Parameters
id
the ID of the document to get.
Throws
com. couchbase. client. core. error. Document Not Found On Replica Exception
if the specified replica document does not exist.
com. couchbase. client. core. error. Replica Index Out Of Bounds Exception
if the strategy specifies a replica index not less than the number of replicas configured for the bucket.
com. couchbase. client. core. error. Replica Index Currently Unavailable Exception
if the strategy specifies a replica index that is not currently available.