Uses of Enum
com.couchbase.client.core.api.kv.CoreReadPreference
Packages that use CoreReadPreference
Package
Description
-
Uses of CoreReadPreference in com.couchbase.client.core.api.kv
Methods in com.couchbase.client.core.api.kv that return CoreReadPreferenceModifier and TypeMethodDescriptionstatic CoreReadPreference
Returns the enum constant of this type with the specified name.static CoreReadPreference[]
CoreReadPreference.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.couchbase.client.core.api.kv with parameters of type CoreReadPreferenceModifier and TypeMethodDescriptionCoreKvOps.getAllReplicasReactive
(CoreCommonOptions common, String key, CoreReadPreference readPreference) CoreKvOps.getAnyReplicaReactive
(CoreCommonOptions common, String key, CoreReadPreference readPreference) CoreKvOps.subdocGetAllReplicasReactive
(CoreCommonOptions common, String key, List<CoreSubdocGetCommand> commands, CoreReadPreference readPreference) CoreKvOps.subdocGetAnyReplicaReactive
(CoreCommonOptions common, String key, List<CoreSubdocGetCommand> commands, CoreReadPreference readPreference) -
Uses of CoreReadPreference in com.couchbase.client.core.classic.kv
Methods in com.couchbase.client.core.classic.kv with parameters of type CoreReadPreferenceModifier and TypeMethodDescriptionClassicCoreKvOps.getAllReplicasReactive
(CoreCommonOptions common, String key, CoreReadPreference readPreference) ClassicCoreKvOps.getAnyReplicaReactive
(CoreCommonOptions common, String key, CoreReadPreference readPreference) ClassicCoreKvOps.subdocGetAllReplicasReactive
(CoreCommonOptions common, String key, List<CoreSubdocGetCommand> commands, CoreReadPreference readPreference) ClassicCoreKvOps.subdocGetAnyReplicaReactive
(CoreCommonOptions common, String key, List<CoreSubdocGetCommand> commands, CoreReadPreference readPreference) -
Uses of CoreReadPreference in com.couchbase.client.core.protostellar.kv
Methods in com.couchbase.client.core.protostellar.kv with parameters of type CoreReadPreferenceModifier and TypeMethodDescriptionProtostellarCoreKvOps.getAllReplicasReactive
(CoreCommonOptions common, String key, CoreReadPreference readPreference) ProtostellarCoreKvOps.getAnyReplicaReactive
(CoreCommonOptions common, String key, CoreReadPreference readPreference) ProtostellarCoreKvOps.subdocGetAllReplicasReactive
(CoreCommonOptions common, String key, List<CoreSubdocGetCommand> commands, CoreReadPreference readPreference) ProtostellarCoreKvOps.subdocGetAnyReplicaReactive
(CoreCommonOptions common, String key, List<CoreSubdocGetCommand> commands, CoreReadPreference readPreference) -
Uses of CoreReadPreference in com.couchbase.client.core.service.kv
Methods in com.couchbase.client.core.service.kv with parameters of type CoreReadPreferenceModifier and TypeMethodDescriptionstatic <R> CompletableFuture<List<CompletableFuture<R>>>
ReplicaHelper.getAllReplicasAsync
(Core core, CollectionIdentifier collectionIdentifier, String documentId, Duration timeout, RetryStrategy retryStrategy, Map<String, Object> clientContext, RequestSpan parentSpan, CoreReadPreference readPreference, Function<ReplicaHelper.GetReplicaResponse, R> responseMapper) Reads from replicas or the active node based on the options and returns the results as a list of futures that might complete or fail.static Flux<ReplicaHelper.GetReplicaResponse>
ReplicaHelper.getAllReplicasReactive
(Core core, CollectionIdentifier collectionIdentifier, String documentId, Duration timeout, RetryStrategy retryStrategy, Map<String, Object> clientContext, RequestSpan parentSpan, CoreReadPreference readPreference) static CompletableFuture<Stream<GetRequest>>
ReplicaHelper.getAllReplicasRequests
(Core core, CollectionIdentifier collectionIdentifier, String documentId, Map<String, Object> clientContext, RetryStrategy retryStrategy, Duration timeout, RequestSpan parent, CoreReadPreference readPreference) Helper method to assemble a stream of requests to the active and all replicasstatic <R> CompletableFuture<R>
ReplicaHelper.getAnyReplicaAsync
(Core core, CollectionIdentifier collectionIdentifier, String documentId, Duration timeout, RetryStrategy retryStrategy, Map<String, Object> clientContext, RequestSpan parentSpan, CoreReadPreference readPreference, Function<ReplicaHelper.GetReplicaResponse, R> responseMapper) static <R> CompletableFuture<List<CompletableFuture<R>>>
ReplicaHelper.lookupInAllReplicasAsync
(Core core, CollectionIdentifier collectionIdentifier, String documentId, List<CoreSubdocGetCommand> commands, Duration timeout, RetryStrategy retryStrategy, Map<String, Object> clientContext, RequestSpan parentSpan, CoreReadPreference readPreference, Function<CoreSubdocGetResult, R> responseMapper) Reads from replicas or the active node based on the options and returns the results as a list of futures that might complete or fail.static Flux<CoreSubdocGetResult>
ReplicaHelper.lookupInAllReplicasReactive
(Core core, CollectionIdentifier collectionIdentifier, String documentId, List<CoreSubdocGetCommand> commands, Duration timeout, RetryStrategy retryStrategy, Map<String, Object> clientContext, RequestSpan parentSpan, CoreReadPreference readPreference) static CompletableFuture<Stream<SubdocGetRequest>>
ReplicaHelper.lookupInAllReplicasRequests
(Core core, CollectionIdentifier collectionIdentifier, String documentId, List<CoreSubdocGetCommand> commands, Map<String, Object> clientContext, RetryStrategy retryStrategy, Duration timeout, RequestSpan parent, CoreReadPreference readPreference) Helper method to assemble a stream of requests to the active and all replicasstatic <R> CompletableFuture<R>
ReplicaHelper.lookupInAnyReplicaAsync
(Core core, CollectionIdentifier collectionIdentifier, String documentId, List<CoreSubdocGetCommand> commands, Duration timeout, RetryStrategy retryStrategy, Map<String, Object> clientContext, RequestSpan parentSpan, CoreReadPreference readPreference, Function<CoreSubdocGetResult, R> responseMapper) Constructors in com.couchbase.client.core.service.kv with parameters of type CoreReadPreferenceModifierConstructorDescriptionNodeIndexCalculator
(CoreReadPreference readPreference, CouchbaseBucketConfig topology, CoreContext coreContext)