Req
- The request type of gRPC call.Resp
- The response type of the gRPC call.public class ClientPublisher<Req,Resp>
extends java.lang.Object
implements org.reactivestreams.Publisher<Resp>
Constructor and Description |
---|
ClientPublisher(Req request,
java.util.function.BiConsumer<Req,io.grpc.stub.StreamObserver<Resp>> clientStub,
ExecutionSequencerFactory esf) |
Modifier and Type | Method and Description |
---|---|
void |
subscribe(org.reactivestreams.Subscriber<? super Resp> subscriber)
Executes the RPC call right away and feeds its results to the subscriber on demand.
|
public ClientPublisher(@Nonnull Req request, @Nonnull java.util.function.BiConsumer<Req,io.grpc.stub.StreamObserver<Resp>> clientStub, @Nonnull ExecutionSequencerFactory esf)