public class CoreProtostellarAccessorsStreaming extends Object
Can handle any streaming setup, e.g. query, search, etc.
For single-request-single-response situations, CoreProtostellarAccessors.
| Modifier and Type | Method and Description |
|---|---|
static <TGrpcRequest,TGrpcResponse> |
async(CoreProtostellar core,
ProtostellarRequest<TGrpcRequest> request,
BiConsumer<ProtostellarEndpoint,com.couchbase.client.core.deps.io.grpc.stub.StreamObserver<TGrpcResponse>> executeFutureGrpcCall,
Function<Throwable,ProtostellarRequestBehaviour> convertException) |
static <TGrpcRequest,TGrpcResponse> |
blocking(CoreProtostellar core,
ProtostellarRequest<TGrpcRequest> request,
BiConsumer<ProtostellarEndpoint,com.couchbase.client.core.deps.io.grpc.stub.StreamObserver<TGrpcResponse>> executeFutureGrpcCall,
Function<Throwable,ProtostellarRequestBehaviour> convertException) |
static <TGrpcRequest,TGrpcResponse> |
reactive(CoreProtostellar core,
ProtostellarRequest<TGrpcRequest> request,
BiConsumer<ProtostellarEndpoint,com.couchbase.client.core.deps.io.grpc.stub.StreamObserver<TGrpcResponse>> executeFutureGrpcCall,
Function<Throwable,ProtostellarRequestBehaviour> convertException) |
public static <TGrpcRequest,TGrpcResponse> List<TGrpcResponse> blocking(CoreProtostellar core, ProtostellarRequest<TGrpcRequest> request, BiConsumer<ProtostellarEndpoint,com.couchbase.client.core.deps.io.grpc.stub.StreamObserver<TGrpcResponse>> executeFutureGrpcCall, Function<Throwable,ProtostellarRequestBehaviour> convertException)
public static <TGrpcRequest,TGrpcResponse> CoreAsyncResponse<List<TGrpcResponse>> async(CoreProtostellar core, ProtostellarRequest<TGrpcRequest> request, BiConsumer<ProtostellarEndpoint,com.couchbase.client.core.deps.io.grpc.stub.StreamObserver<TGrpcResponse>> executeFutureGrpcCall, Function<Throwable,ProtostellarRequestBehaviour> convertException)
public static <TGrpcRequest,TGrpcResponse> Flux<TGrpcResponse> reactive(CoreProtostellar core, ProtostellarRequest<TGrpcRequest> request, BiConsumer<ProtostellarEndpoint,com.couchbase.client.core.deps.io.grpc.stub.StreamObserver<TGrpcResponse>> executeFutureGrpcCall, Function<Throwable,ProtostellarRequestBehaviour> convertException)
Copyright © 2024 Couchbase, Inc.. All rights reserved.