public final class ClientCalls extends Object
Modifier and Type | Method and Description |
---|---|
static <TRequest,TResponse> |
manyToMany(reactor.core.publisher.Flux<TRequest> rxRequest,
Function<io.grpc.stub.StreamObserver<TResponse>,io.grpc.stub.StreamObserver<TRequest>> delegate)
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(reactor.core.publisher.Flux<TRequest> rxRequest,
Function<io.grpc.stub.StreamObserver<TResponse>,io.grpc.stub.StreamObserver<TRequest>> delegate)
Implements a stream -> unary call as
Flux -> Mono , where the client transits a stream of
messages. |
static <TRequest,TResponse> |
oneToMany(reactor.core.publisher.Mono<TRequest> rxRequest,
BiConsumer<TRequest,io.grpc.stub.StreamObserver<TResponse>> delegate)
Implements a unary -> stream call as
Mono -> Flux , where the server responds with a
stream of messages. |
static <TRequest,TResponse> |
oneToOne(reactor.core.publisher.Mono<TRequest> rxRequest,
BiConsumer<TRequest,io.grpc.stub.StreamObserver<TResponse>> delegate)
Implements a unary -> unary call using
Mono -> Mono . |
public static <TRequest,TResponse> reactor.core.publisher.Mono<TResponse> oneToOne(reactor.core.publisher.Mono<TRequest> rxRequest, BiConsumer<TRequest,io.grpc.stub.StreamObserver<TResponse>> delegate)
Mono
-> Mono
.public static <TRequest,TResponse> reactor.core.publisher.Flux<TResponse> oneToMany(reactor.core.publisher.Mono<TRequest> rxRequest, BiConsumer<TRequest,io.grpc.stub.StreamObserver<TResponse>> delegate)
Mono
-> Flux
, where the server responds with a
stream of messages.public static <TRequest,TResponse> reactor.core.publisher.Mono<TResponse> manyToOne(reactor.core.publisher.Flux<TRequest> rxRequest, Function<io.grpc.stub.StreamObserver<TResponse>,io.grpc.stub.StreamObserver<TRequest>> delegate)
Flux
-> Mono
, where the client transits a stream of
messages.public static <TRequest,TResponse> reactor.core.publisher.Flux<TResponse> manyToMany(reactor.core.publisher.Flux<TRequest> rxRequest, Function<io.grpc.stub.StreamObserver<TResponse>,io.grpc.stub.StreamObserver<TRequest>> delegate)
Flux
-> Flux
, where both the client
and the server independently stream to each other.Copyright © 2018. All rights reserved.