public class CoreProtostellarAccessors extends Object
Can handle any single-request-single-response setup, e.g. KV, collection management, etc.
Does not handle streaming. CoreProtostellarAccessorsStreaming for that.
| Constructor and Description |
|---|
CoreProtostellarAccessors() |
| Modifier and Type | Method and Description |
|---|---|
static <TSdkResult,TGrpcRequest,TGrpcResponse> |
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> |
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> |
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 <TSdkResult,TGrpcRequest,TGrpcResponse> |
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> |
blocking(CoreProtostellar core,
ProtostellarRequest<TGrpcRequest> request,
Function<ProtostellarEndpoint,TGrpcResponse> executeBlockingGrpcCall,
Function<TGrpcResponse,TSdkResult> convertResponse,
Function<Throwable,ProtostellarRequestBehaviour> convertException) |
static <TSdkResult,TGrpcRequest,TGrpcResponse> |
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> |
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> |
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).
|
public static <TSdkResult,TGrpcRequest,TGrpcResponse> TSdkResult blocking(CoreProtostellar core, ProtostellarRequest<TGrpcRequest> request, Function<ProtostellarEndpoint,TGrpcResponse> executeBlockingGrpcCall, Function<TGrpcResponse,TSdkResult> convertResponse)
public static <TSdkResult,TGrpcRequest,TGrpcResponse> TSdkResult blocking(CoreProtostellar core, ProtostellarRequest<TGrpcRequest> request, Function<ProtostellarEndpoint,TGrpcResponse> executeBlockingGrpcCall, Function<TGrpcResponse,TSdkResult> convertResponse, Function<Throwable,ProtostellarRequestBehaviour> convertException)
TSdkResult - e.g. MutationResultTGrpcResponse - e.g. com.couchbase.client.protostellar.kv.v1.InsertResponsepublic static <TSdkResult,TGrpcRequest,TGrpcResponse> CoreAsyncResponse<TSdkResult> 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)
public static <TSdkResult,TGrpcRequest,TGrpcResponse> CoreAsyncResponse<TSdkResult> 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)
public static <TSdkResult,TGrpcRequest,TGrpcResponse> void 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)
public static <TSdkResult,TGrpcRequest,TGrpcResponse> Mono<TSdkResult> 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)
public static <TSdkResult,TGrpcRequest,TGrpcResponse> Mono<TSdkResult> 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)
public static <TSdkResult,TGrpcRequest,TGrpcResponse> void 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)
Copyright © 2024 Couchbase, Inc.. All rights reserved.