Package | Description |
---|---|
com.couchbase.client.java |
Holds all classes that are needed for the Couchbase Java SDK.
|
com.couchbase.client.java.kv |
Namespace for various kv-service related classes.
|
Modifier and Type | Method and Description |
---|---|
GetReplicaResult |
Collection.getAnyReplica(String id)
Reads all available replicas, and returns the first found.
|
GetReplicaResult |
Collection.getAnyReplica(String id,
GetAnyReplicaOptions options)
Reads all available replicas, and returns the first found with custom options.
|
Modifier and Type | Method and Description |
---|---|
Stream<GetReplicaResult> |
Collection.getAllReplicas(String id)
Reads from all available replicas and the active node and returns the results as a stream.
|
Flux<GetReplicaResult> |
ReactiveCollection.getAllReplicas(String id)
Reads all available replicas, including the active, and returns the results as a flux.
|
CompletableFuture<List<CompletableFuture<GetReplicaResult>>> |
AsyncCollection.getAllReplicas(String id)
Reads from all available replicas and the active node and returns the results as a list
of futures that might complete or fail.
|
Stream<GetReplicaResult> |
Collection.getAllReplicas(String id,
GetAllReplicasOptions options)
Reads all available or one replica and returns the results as a stream with custom options.
|
Flux<GetReplicaResult> |
ReactiveCollection.getAllReplicas(String id,
GetAllReplicasOptions options)
Reads all available replicas, including the active, and returns the results as a flux.
|
CompletableFuture<List<CompletableFuture<GetReplicaResult>>> |
AsyncCollection.getAllReplicas(String id,
GetAllReplicasOptions options)
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.
|
Mono<GetReplicaResult> |
ReactiveCollection.getAnyReplica(String id)
Reads all available replicas, and returns the first found.
|
CompletableFuture<GetReplicaResult> |
AsyncCollection.getAnyReplica(String id)
Reads all available replicas, and returns the first found.
|
Mono<GetReplicaResult> |
ReactiveCollection.getAnyReplica(String id,
GetAnyReplicaOptions options)
Reads all available replicas, and returns the first found.
|
CompletableFuture<GetReplicaResult> |
AsyncCollection.getAnyReplica(String id,
GetAnyReplicaOptions options)
Reads all available replicas, and returns the first found.
|
Modifier and Type | Method and Description |
---|---|
static GetReplicaResult |
GetReplicaResult.from(com.couchbase.client.core.api.kv.CoreGetResult get,
Transcoder transcoder) |
static GetReplicaResult |
GetReplicaResult.from(com.couchbase.client.core.service.kv.ReplicaHelper.GetReplicaResponse response,
Transcoder transcoder) |
Copyright © 2024 Couchbase, Inc.. All rights reserved.