from Index
Returns a strategy that reads from the specified replica.
Set wrap to true if you want to efficiently read from a single replica, but don't necessarily care which one.
When wrap is true:
The specified replica index, modulo the actual number of replicas configured on the bucket, is the starting point for a scan of all available replicas; the result may come from a different replica index than the one specified.
com.couchbase.client.core.error.ReplicaIndexOutOfBoundsException is not thrown unless there are no replicas.
com.couchbase.client.core.error.ReplicaIndexCurrentlyUnavailableException is not thrown unless all replicas are currently unavailable.