| Modifier and Type | Class and Description |
|---|---|
class |
ProtostellarCollectionManagerRequest<TGrpcRequest> |
class |
ProtostellarKeyValueRequest<TGrpcRequest> |
| Modifier and Type | Method and Description |
|---|---|
static <TGrpcRequest,TGrpcResponse> |
CoreProtostellarAccessorsStreaming.async(CoreProtostellar core,
ProtostellarRequest<TGrpcRequest> request,
BiConsumer<ProtostellarEndpoint,com.couchbase.client.core.deps.io.grpc.stub.StreamObserver<TGrpcResponse>> executeFutureGrpcCall,
Function<Throwable,ProtostellarRequestBehaviour> convertException) |
static <TSdkResult,TGrpcRequest,TGrpcResponse> |
CoreProtostellarAccessors.async(CoreProtostellar core,
ProtostellarRequest<TGrpcRequest> request,
Function<ProtostellarEndpoint,com.couchbase.client.core.deps.com.google.common.util.concurrent.ListenableFuture<TGrpcResponse>> executeFutureGrpcCall,
Function<TGrpcResponse,TSdkResult> convertResponse)
Convenience overload that uses the default exception handling.
|
static <TSdkResult,TGrpcRequest,TGrpcResponse> |
CoreProtostellarAccessors.async(CoreProtostellar core,
ProtostellarRequest<TGrpcRequest> request,
Function<ProtostellarEndpoint,com.couchbase.client.core.deps.com.google.common.util.concurrent.ListenableFuture<TGrpcResponse>> executeFutureGrpcCall,
Function<TGrpcResponse,TSdkResult> convertResponse,
Function<Throwable,ProtostellarRequestBehaviour> convertException) |
static <TSdkResult,TGrpcRequest,TGrpcResponse> |
CoreProtostellarAccessors.asyncInternal(CompletableFuture<TSdkResult> ret,
CoreProtostellar core,
ProtostellarRequest<TGrpcRequest> request,
Function<ProtostellarEndpoint,com.couchbase.client.core.deps.com.google.common.util.concurrent.ListenableFuture<TGrpcResponse>> executeFutureGrpcCall,
Function<TGrpcResponse,TSdkResult> convertResponse,
Function<Throwable,ProtostellarRequestBehaviour> convertException) |
static <TGrpcRequest,TGrpcResponse> |
CoreProtostellarAccessorsStreaming.blocking(CoreProtostellar core,
ProtostellarRequest<TGrpcRequest> request,
BiConsumer<ProtostellarEndpoint,com.couchbase.client.core.deps.io.grpc.stub.StreamObserver<TGrpcResponse>> executeFutureGrpcCall,
Function<Throwable,ProtostellarRequestBehaviour> convertException) |
static <TSdkResult,TGrpcRequest,TGrpcResponse> |
CoreProtostellarAccessors.blocking(CoreProtostellar core,
ProtostellarRequest<TGrpcRequest> request,
Function<ProtostellarEndpoint,TGrpcResponse> executeBlockingGrpcCall,
Function<TGrpcResponse,TSdkResult> convertResponse)
Convenience overload that uses the default exception handling.
|
static <TSdkResult,TGrpcRequest,TGrpcResponse> |
CoreProtostellarAccessors.blocking(CoreProtostellar core,
ProtostellarRequest<TGrpcRequest> request,
Function<ProtostellarEndpoint,TGrpcResponse> executeBlockingGrpcCall,
Function<TGrpcResponse,TSdkResult> convertResponse,
Function<Throwable,ProtostellarRequestBehaviour> convertException) |
static ProtostellarRequestBehaviour |
CoreProtostellarErrorHandlingUtil.convertException(CoreProtostellar core,
ProtostellarRequest<?> request,
Throwable t) |
static ProtostellarRequestBehaviour |
CoreProtostellarErrorHandlingUtil.convertStatus(CoreProtostellar core,
ProtostellarRequest<?> request,
com.couchbase.client.core.deps.io.grpc.StatusRuntimeException t,
com.couchbase.client.core.deps.com.google.rpc.Status status) |
static <T> boolean |
CoreProtostellarUtil.handleShutdownAsync(CoreProtostellar core,
CompletableFuture<T> ret,
ProtostellarRequest<?> request) |
static void |
CoreProtostellarUtil.handleShutdownBlocking(CoreProtostellar core,
ProtostellarRequest<?> request) |
static <T> Mono<T> |
CoreProtostellarUtil.handleShutdownReactive(CoreProtostellar core,
ProtostellarRequest<?> request) |
static <TSdkResult> |
CoreProtostellarUtil.handleShutdownReactive(Sinks.Many<TSdkResult> ret,
CoreProtostellar core,
ProtostellarRequest<?> request) |
static <TSdkResult> |
CoreProtostellarUtil.handleShutdownReactive(Sinks.One<TSdkResult> ret,
CoreProtostellar core,
ProtostellarRequest<?> request) |
static <TGrpcRequest,TGrpcResponse> |
CoreProtostellarAccessorsStreaming.reactive(CoreProtostellar core,
ProtostellarRequest<TGrpcRequest> request,
BiConsumer<ProtostellarEndpoint,com.couchbase.client.core.deps.io.grpc.stub.StreamObserver<TGrpcResponse>> executeFutureGrpcCall,
Function<Throwable,ProtostellarRequestBehaviour> convertException) |
static <TSdkResult,TGrpcRequest,TGrpcResponse> |
CoreProtostellarAccessors.reactive(CoreProtostellar core,
ProtostellarRequest<TGrpcRequest> request,
Function<ProtostellarEndpoint,com.couchbase.client.core.deps.com.google.common.util.concurrent.ListenableFuture<TGrpcResponse>> executeFutureGrpcCall,
Function<TGrpcResponse,TSdkResult> convertResponse)
Convenience overload that uses the default exception handling.
|
static <TSdkResult,TGrpcRequest,TGrpcResponse> |
CoreProtostellarAccessors.reactive(CoreProtostellar core,
ProtostellarRequest<TGrpcRequest> request,
Function<ProtostellarEndpoint,com.couchbase.client.core.deps.com.google.common.util.concurrent.ListenableFuture<TGrpcResponse>> executeFutureGrpcCall,
Function<TGrpcResponse,TSdkResult> convertResponse,
Function<Throwable,ProtostellarRequestBehaviour> convertException) |
static <TSdkResult,TGrpcRequest,TGrpcResponse> |
CoreProtostellarAccessors.reactiveInternal(Sinks.One<TSdkResult> ret,
CoreProtostellar core,
ProtostellarRequest<TGrpcRequest> request,
Function<ProtostellarEndpoint,com.couchbase.client.core.deps.com.google.common.util.concurrent.ListenableFuture<TGrpcResponse>> executeFutureGrpcCall,
Function<TGrpcResponse,TSdkResult> convertResponse,
Function<Throwable,ProtostellarRequestBehaviour> convertException)
This method must always be called at Reactive runtime, not build-time (e.g., inside a Mono.defer or similar).
|
| Constructor and Description |
|---|
ProtostellarBaseRequest(CoreProtostellar core,
ProtostellarRequest<?> request) |
| Modifier and Type | Method and Description |
|---|---|
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.AppendRequest> |
CoreProtoStellarKvBinaryRequests.appendRequest(CoreProtostellar core,
String key,
CoreKeyspace keyspace,
CoreCommonOptions opts,
byte[] content,
long cas,
CoreDurability durability)
For creating Protostellar GRPC requests.
|
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.DecrementRequest> |
CoreProtoStellarKvBinaryRequests.decrementRequest(CoreProtostellar core,
String key,
CoreKeyspace keyspace,
CoreCommonOptions opts,
CoreExpiry expiry,
long delta,
Optional<Long> initial,
CoreDurability durability) |
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.ExistsRequest> |
CoreProtostellarKeyValueRequests.existsRequest(CoreProtostellar core,
CoreKeyspace keyspace,
CoreCommonOptions opts,
String key) |
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.GetAndLockRequest> |
CoreProtostellarKeyValueRequests.getAndLockRequest(CoreProtostellar core,
CoreCommonOptions opts,
CoreKeyspace keyspace,
String key,
Duration lockTime,
CompressionConfig compressionConfig) |
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.GetAndTouchRequest> |
CoreProtostellarKeyValueRequests.getAndTouchRequest(CoreProtostellar core,
CoreCommonOptions opts,
CoreKeyspace keyspace,
String key,
CoreExpiry expiry,
CompressionConfig compressionConfig) |
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.GetRequest> |
CoreProtostellarKeyValueRequests.getRequest(CoreProtostellar core,
CoreCommonOptions opts,
CoreKeyspace keyspace,
String key,
List<String> projections,
boolean withExpiry,
CompressionConfig compressionConfig) |
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.IncrementRequest> |
CoreProtoStellarKvBinaryRequests.incrementRequest(CoreProtostellar core,
String key,
CoreKeyspace keyspace,
CoreCommonOptions opts,
CoreExpiry expiry,
long delta,
Optional<Long> initial,
CoreDurability durability) |
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.InsertRequest> |
CoreProtostellarKeyValueRequests.insertRequest(CoreProtostellar core,
CoreKeyspace keyspace,
CoreCommonOptions opts,
String key,
Supplier<CoreEncodedContent> content,
CoreDurability durability,
CoreExpiry expiry,
CompressionConfig compressionConfig) |
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.LookupInRequest> |
CoreProtostellarKeyValueRequests.lookupInRequest(CoreProtostellar core,
CoreKeyspace keyspace,
CoreCommonOptions opts,
String key,
List<CoreSubdocGetCommand> commands,
boolean accessDeleted) |
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.MutateInRequest> |
CoreProtostellarKeyValueRequests.mutateInRequest(CoreProtostellar core,
CoreKeyspace keyspace,
CoreCommonOptions opts,
String key,
List<CoreSubdocMutateCommand> commands,
CoreStoreSemantics storeSemantics,
long cas,
CoreDurability durability,
CoreExpiry expiry,
boolean preserveExpiry,
boolean accessDeleted,
boolean createAsDeleted) |
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.PrependRequest> |
CoreProtoStellarKvBinaryRequests.prependRequest(CoreProtostellar core,
String key,
CoreKeyspace keyspace,
CoreCommonOptions opts,
byte[] content,
long cas,
CoreDurability durability) |
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.RemoveRequest> |
CoreProtostellarKeyValueRequests.removeRequest(CoreProtostellar core,
CoreKeyspace keyspace,
CoreCommonOptions opts,
String key,
long cas,
CoreDurability durability) |
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.ReplaceRequest> |
CoreProtostellarKeyValueRequests.replaceRequest(CoreProtostellar core,
CoreKeyspace keyspace,
CoreCommonOptions opts,
String key,
Supplier<CoreEncodedContent> content,
long cas,
CoreDurability durability,
CoreExpiry expiry,
boolean preserveExpiry,
CompressionConfig compressionConfig) |
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.TouchRequest> |
CoreProtostellarKeyValueRequests.touchRequest(CoreProtostellar core,
CoreKeyspace keyspace,
CoreCommonOptions opts,
String key,
CoreExpiry expiry) |
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.UnlockRequest> |
CoreProtostellarKeyValueRequests.unlockRequest(CoreProtostellar core,
CoreKeyspace keyspace,
CoreCommonOptions opts,
String key,
long cas) |
static ProtostellarRequest<com.couchbase.client.protostellar.kv.v1.UpsertRequest> |
CoreProtostellarKeyValueRequests.upsertRequest(CoreProtostellar core,
CoreKeyspace keyspace,
CoreCommonOptions opts,
String key,
Supplier<CoreEncodedContent> content,
CoreDurability durability,
CoreExpiry expiry,
boolean preserveExpiry,
CompressionConfig compressionConfig) |
| Modifier and Type | Method and Description |
|---|---|
static CoreSubdocGetResult |
CoreProtostellarKeyValueResponses.convertResponse(CoreProtostellar core,
ProtostellarRequest<?> request,
CoreKeyspace keyspace,
String key,
com.couchbase.client.protostellar.kv.v1.LookupInResponse response,
List<CoreSubdocGetCommand> specs) |
| Modifier and Type | Method and Description |
|---|---|
static ProtostellarRequest<com.couchbase.client.protostellar.admin.bucket.v1.CreateBucketRequest> |
ProtostellarCoreBucketManagerRequests.createBucketRequest(CoreProtostellar core,
CoreBucketSettings settings,
CoreCommonOptions opts) |
static ProtostellarRequest<com.couchbase.client.protostellar.admin.collection.v1.CreateCollectionRequest> |
CoreProtostellarCollectionManagerRequests.createCollectionRequest(CoreProtostellar core,
String bucketName,
String scopeName,
String collectionName,
CoreCreateOrUpdateCollectionSettings settings,
CoreCommonOptions opts) |
static ProtostellarRequest<com.couchbase.client.protostellar.admin.collection.v1.CreateScopeRequest> |
CoreProtostellarCollectionManagerRequests.createScopeRequest(CoreProtostellar core,
String bucketName,
String scopeName,
CoreCommonOptions opts) |
static ProtostellarRequest<com.couchbase.client.protostellar.admin.bucket.v1.DeleteBucketRequest> |
ProtostellarCoreBucketManagerRequests.deleteBucketRequest(CoreProtostellar core,
String bucketName,
CoreCommonOptions opts) |
static ProtostellarRequest<com.couchbase.client.protostellar.admin.collection.v1.DeleteCollectionRequest> |
CoreProtostellarCollectionManagerRequests.deleteCollectionRequest(CoreProtostellar core,
String bucketName,
String scopeName,
String collectionName,
CoreCommonOptions opts) |
static ProtostellarRequest<com.couchbase.client.protostellar.admin.collection.v1.DeleteScopeRequest> |
CoreProtostellarCollectionManagerRequests.deleteScopeRequest(CoreProtostellar core,
String bucketName,
String scopeName,
CoreCommonOptions opts) |
static ProtostellarRequest<com.couchbase.client.protostellar.admin.bucket.v1.ListBucketsRequest> |
ProtostellarCoreBucketManagerRequests.listBucketsRequest(CoreProtostellar core,
CoreCommonOptions opts) |
static ProtostellarRequest<com.couchbase.client.protostellar.admin.collection.v1.ListCollectionsRequest> |
CoreProtostellarCollectionManagerRequests.listCollectionsRequest(CoreProtostellar core,
String bucketName,
CoreCommonOptions opts) |
static ProtostellarRequest<com.couchbase.client.protostellar.admin.bucket.v1.UpdateBucketRequest> |
ProtostellarCoreBucketManagerRequests.updateBucketRequest(CoreProtostellar core,
CoreBucketSettings settings,
CoreCommonOptions opts) |
| Modifier and Type | Method and Description |
|---|---|
static Duration |
RetryOrchestratorProtostellar.capDuration(Duration uncappedDuration,
ProtostellarRequest<?> request) |
static ProtostellarRequestBehaviour |
RetryOrchestratorProtostellar.shouldRetry(CoreProtostellar core,
ProtostellarRequest<?> request,
RetryReason reason) |
Copyright © 2024 Couchbase, Inc.. All rights reserved.