Modifier and Type | Method and Description |
---|---|
static Mono<PingResult> |
HealthPinger.ping(Core core,
Optional<Duration> timeout,
RetryStrategy retryStrategy,
Set<ServiceType> serviceTypes,
Optional<String> reportId,
Optional<String> bucketName) |
static Mono<PingResult> |
HealthPinger.ping(Core core,
Optional<Duration> timeout,
RetryStrategy retryStrategy,
Set<ServiceType> serviceTypes,
Optional<String> reportId,
Optional<String> bucketName,
WaitUntilReadyHelper.WaitUntilReadyLogger log)
Performs a service ping against all or (if given) the services provided.
|
Modifier and Type | Method and Description |
---|---|
Optional<RetryStrategy> |
CoreCommonOptions.retryStrategy() |
Modifier and Type | Method and Description |
---|---|
static CoreCommonOptions |
CoreCommonOptions.of(Duration timeout,
RetryStrategy retryStrategy,
RequestSpan parentSpan) |
Modifier and Type | Method and Description |
---|---|
static CoreCommonOptions |
CoreCommonOptions.ofOptional(Optional<Duration> timeout,
Optional<RetryStrategy> retryStrategy,
Optional<RequestSpan> parentSpan) |
Modifier and Type | Method and Description |
---|---|
RetryStrategy |
CoreEnvironment.retryStrategy()
Returns the retry strategy on this environment.
|
Modifier and Type | Method and Description |
---|---|
SELF |
CoreEnvironment.Builder.retryStrategy(RetryStrategy retryStrategy)
Allows to customize the default retry strategy.
|
Modifier and Type | Method and Description |
---|---|
RetryStrategy |
Request.retryStrategy()
The retry strategy for this particular request.
|
RetryStrategy |
BaseRequest.retryStrategy() |
Constructor and Description |
---|
BaseRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy) |
BaseRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
RequestSpan requestSpan)
Creates a basic request that has all the required properties to be
executed in general.
|
Constructor and Description |
---|
AnalyticsRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
Authenticator authenticator,
byte[] query,
int priority,
boolean idempotent,
String contextId,
String statement,
RequestSpan span,
String bucket,
String scope) |
AnalyticsRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
Authenticator authenticator,
byte[] query,
int priority,
boolean idempotent,
String contextId,
String statement,
RequestSpan span,
String bucket,
String scope,
String uri,
com.couchbase.client.core.deps.io.netty.handler.codec.http.HttpMethod httpMethod) |
Modifier and Type | Method and Description |
---|---|
static SubdocGetRequest |
SubdocGetRequest.create(Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
String key,
byte flags,
List<CoreSubdocGetCommand> commands,
RequestSpan span) |
static ReplicaSubdocGetRequest |
ReplicaSubdocGetRequest.create(Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
String key,
byte flags,
List<CoreSubdocGetCommand> commands,
short replica,
RequestSpan span) |
Constructor and Description |
---|
AppendRequest(Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
String key,
byte[] content,
long cas,
Optional<DurabilityLevel> syncReplicationType,
RequestSpan span) |
BaseKeyValueRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
String key,
CollectionIdentifier collectionIdentifier) |
BaseKeyValueRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
String key,
CollectionIdentifier collectionIdentifier,
RequestSpan span) |
CarrierBucketConfigRequest(Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
NodeIdentifier target,
ConfigVersion ifNewerThan) |
CarrierGlobalConfigRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
NodeIdentifier target,
ConfigVersion ifNewerThan) |
DecrementRequest(Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
String key,
long delta,
Optional<Long> initial,
long expiry,
Optional<DurabilityLevel> syncReplicationType,
RequestSpan span) |
GetAndLockRequest(String key,
Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
Duration lockFor,
RequestSpan span) |
GetAndTouchRequest(String key,
Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
long expiration,
RequestSpan span) |
GetCollectionIdRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
CollectionIdentifier collectionIdentifier) |
GetCollectionManifestRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
CollectionIdentifier collectionIdentifier) |
GetMetaRequest(String key,
Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
RequestSpan span) |
GetRequest(String key,
Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
RequestSpan span) |
IncrementRequest(Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
String key,
long delta,
Optional<Long> initial,
long expiration,
Optional<DurabilityLevel> syncReplicationType,
RequestSpan span) |
InsertRequest(String key,
byte[] content,
long expiration,
int flags,
Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
Optional<DurabilityLevel> syncReplicationType,
RequestSpan span) |
KvPingRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
CollectionIdentifier identifier,
NodeIdentifier target) |
MultiObserveViaCasRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
CollectionIdentifier collectionIdentifier,
NodeIdentifier target,
Map<byte[],Short> keys,
Predicate<ObserveViaCasResponse.ObserveStatus> responsePredicate) |
NoopRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
CollectionIdentifier collectionIdentifier) |
ObserveViaCasRequest(Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
String key,
boolean active,
int replica) |
ObserveViaSeqnoRequest(Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
int replica,
boolean active,
long vbucketUUID,
String key,
RequestSpan span) |
PredeterminedPartitionRequest(short partition,
Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
String key,
CollectionIdentifier collectionIdentifier,
RequestSpan span) |
PrependRequest(Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
String key,
byte[] content,
long cas,
Optional<DurabilityLevel> syncReplicationType,
RequestSpan span) |
RemoveRequest(String key,
long cas,
Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
Optional<DurabilityLevel> syncReplicationType,
RequestSpan span) |
ReplaceRequest(String key,
byte[] content,
long expiration,
boolean preserveExpiry,
int flags,
Duration timeout,
long cas,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
Optional<DurabilityLevel> syncReplicationType,
RequestSpan span) |
ReplicaGetRequest(String key,
Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
short replica,
RequestSpan span) |
SubdocGetRequest(Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
String key,
byte flags,
List<SubdocGetRequest.Command> commands,
RequestSpan span) |
SubdocMutateRequest(Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
BucketConfig bucketConfig,
RetryStrategy retryStrategy,
String key,
boolean insertDocument,
boolean upsertDocument,
boolean reviveDocument,
boolean accessDeleted,
boolean createAsDeleted,
List<SubdocMutateRequest.Command> commands,
long expiration,
boolean preserveExpiry,
long cas,
Optional<DurabilityLevel> syncReplicationType,
RequestSpan span)
Deprecated.
Please use the other constructor instead.
|
SubdocMutateRequest(Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
BucketConfig bucketConfig,
RetryStrategy retryStrategy,
String key,
CoreStoreSemantics storeSemantics,
boolean accessDeleted,
boolean createAsDeleted,
List<CoreSubdocMutateCommand> commands,
long expiration,
boolean preserveExpiry,
long cas,
Optional<DurabilityLevel> syncReplicationType,
RequestSpan span) |
TouchRequest(Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
String key,
long expiry,
RequestSpan span) |
UnlockRequest(Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
String key,
long cas,
RequestSpan span) |
UpsertRequest(String key,
byte[] content,
long expiration,
boolean preserveExpiry,
int flags,
Duration timeout,
CoreContext ctx,
CollectionIdentifier collectionIdentifier,
RetryStrategy retryStrategy,
Optional<DurabilityLevel> syncReplicationType,
RequestSpan span) |
Constructor and Description |
---|
BucketConfigRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
String bucketName,
Authenticator authenticator,
NodeIdentifier target) |
BucketConfigStreamingRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
String bucketName,
Authenticator authenticator) |
GenericManagerRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
Supplier<com.couchbase.client.core.deps.io.netty.handler.codec.http.FullHttpRequest> requestSupplier,
boolean idempotent,
RequestSpan span)
Deprecated.
|
Constructor and Description |
---|
QueryRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
Authenticator authenticator,
String statement,
byte[] query,
boolean idempotent,
String contextId,
RequestSpan span,
String bucket,
String scope,
NodeIdentifier target) |
Constructor and Description |
---|
ServerSearchRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
Authenticator authenticator,
String indexName,
byte[] content,
RequestSpan span,
CoreBucketAndScope scope) |
Constructor and Description |
---|
ViewRequest(Duration timeout,
CoreContext ctx,
RetryStrategy retryStrategy,
Authenticator authenticator,
String bucket,
String design,
String view,
String query,
Optional<byte[]> keysJson,
boolean development,
RequestSpan span) |
Modifier and Type | Method and Description |
---|---|
RetryStrategy |
ProtostellarBaseRequest.retryStrategy() |
RetryStrategy |
ProtostellarRequest.retryStrategy() |
Constructor and Description |
---|
ProtostellarCollectionManagerRequest(TGrpcRequest request,
CoreProtostellar core,
String bucketName,
String scopeName,
String collectionName,
String requestName,
RequestSpan span,
Duration timeout,
boolean readonly,
RetryStrategy retryStrategy,
Map<String,Object> clientContext) |
ProtostellarKeyValueRequest(TGrpcRequest request,
CoreProtostellar core,
CoreKeyspace keyspace,
String key,
CoreDurability durability,
String requestName,
RequestSpan span,
Duration timeout,
boolean readonly,
RetryStrategy retryStrategy,
Map<String,Object> clientContext,
long encodeDurationNanos) |
ProtostellarRequest(TGrpcRequest request,
CoreProtostellar core,
ServiceType serviceType,
String requestName,
RequestSpan span,
Duration timeout,
boolean readonly,
RetryStrategy retryStrategy,
Map<String,Object> clientContext,
long encodeDurationNanos,
Consumer<Map<String,Object>> contextSupplier) |
Modifier and Type | Class and Description |
---|---|
class |
BestEffortRetryStrategy
Retries operations on a best-effort basis until they time out.
|
class |
FailFastRetryStrategy
An internal strategy to fail fast any request that goes through it.
|
Modifier and Type | Method and Description |
---|---|
RetryStrategy |
ObserveContext.retryStrategy() |
Modifier and Type | Method and Description |
---|---|
static <R> CompletableFuture<List<CompletableFuture<R>>> |
ReplicaHelper.getAllReplicasAsync(Core core,
CollectionIdentifier collectionIdentifier,
String documentId,
Duration timeout,
RetryStrategy retryStrategy,
Map<String,Object> clientContext,
RequestSpan parentSpan,
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) |
static CompletableFuture<Stream<GetRequest>> |
ReplicaHelper.getAllReplicasRequests(Core core,
CollectionIdentifier collectionIdentifier,
String documentId,
Map<String,Object> clientContext,
RetryStrategy retryStrategy,
Duration timeout,
RequestSpan parent)
Helper method to assemble a stream of requests to the active and all replicas
|
static <R> CompletableFuture<R> |
ReplicaHelper.getAnyReplicaAsync(Core core,
CollectionIdentifier collectionIdentifier,
String documentId,
Duration timeout,
RetryStrategy retryStrategy,
Map<String,Object> clientContext,
RequestSpan parentSpan,
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,
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) |
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)
Helper method to assemble a stream of requests to the active and all replicas
|
static <R> CompletableFuture<R> |
ReplicaHelper.lookupInAnyReplicaAsync(Core core,
CollectionIdentifier collectionIdentifier,
String documentId,
List<CoreSubdocGetCommand> commands,
Duration timeout,
RetryStrategy retryStrategy,
Map<String,Object> clientContext,
RequestSpan parentSpan,
Function<CoreSubdocGetResult,R> responseMapper) |
Copyright © 2024 Couchbase, Inc.. All rights reserved.