public final class ServerCalls extends Object
| Modifier and Type | Method and Description |
|---|---|
static <TRequest,TResponse> |
manyToMany(io.grpc.stub.StreamObserver<TResponse> responseObserver,
Function<reactor.core.publisher.Flux<TRequest>,reactor.core.publisher.Flux<TResponse>> delegate,
Function<Throwable,Throwable> prepareError,
io.grpc.CallOptions options)
Implements a bidirectional stream → stream call as
Flux → Flux, where both the client
and the server independently stream to each other. |
static <TRequest,TResponse> |
manyToOne(io.grpc.stub.StreamObserver<TResponse> responseObserver,
Function<reactor.core.publisher.Flux<TRequest>,reactor.core.publisher.Mono<TResponse>> delegate,
Function<Throwable,Throwable> prepareError,
io.grpc.CallOptions options)
Implements a stream → unary call as
Flux → Mono, where the client transits a stream of
messages. |
static <TRequest,TResponse> |
oneToMany(TRequest request,
io.grpc.stub.StreamObserver<TResponse> responseObserver,
Function<TRequest,reactor.core.publisher.Flux<TResponse>> delegate,
Function<Throwable,Throwable> prepareError)
Implements a unary → stream call as
Mono → Flux, where the server responds with a
stream of messages. |
static <TRequest,TResponse> |
oneToOne(TRequest request,
io.grpc.stub.StreamObserver<TResponse> responseObserver,
Function<TRequest,reactor.core.publisher.Mono<TResponse>> delegate,
Function<Throwable,Throwable> prepareError)
Implements a unary → unary call using
Mono → Mono. |
static Throwable |
prepareError(Throwable throwable)
Implements default error mapping.
|
public static <TRequest,TResponse> void oneToOne(TRequest request,
io.grpc.stub.StreamObserver<TResponse> responseObserver,
Function<TRequest,reactor.core.publisher.Mono<TResponse>> delegate,
Function<Throwable,Throwable> prepareError)
Mono → Mono.public static <TRequest,TResponse> void oneToMany(TRequest request,
io.grpc.stub.StreamObserver<TResponse> responseObserver,
Function<TRequest,reactor.core.publisher.Flux<TResponse>> delegate,
Function<Throwable,Throwable> prepareError)
Mono → Flux, where the server responds with a
stream of messages.public static <TRequest,TResponse> io.grpc.stub.StreamObserver<TRequest> manyToOne(io.grpc.stub.StreamObserver<TResponse> responseObserver,
Function<reactor.core.publisher.Flux<TRequest>,reactor.core.publisher.Mono<TResponse>> delegate,
Function<Throwable,Throwable> prepareError,
io.grpc.CallOptions options)
Flux → Mono, where the client transits a stream of
messages.public static <TRequest,TResponse> io.grpc.stub.StreamObserver<TRequest> manyToMany(io.grpc.stub.StreamObserver<TResponse> responseObserver,
Function<reactor.core.publisher.Flux<TRequest>,reactor.core.publisher.Flux<TResponse>> delegate,
Function<Throwable,Throwable> prepareError,
io.grpc.CallOptions options)
Flux → Flux, where both the client
and the server independently stream to each other.Copyright © 2023. All rights reserved.