Package com.daml.grpc.adapter.server.rs
Class ServerSubscriber<Resp>
- java.lang.Object
-
- com.daml.grpc.adapter.server.rs.ServerSubscriber<Resp>
-
- All Implemented Interfaces:
org.reactivestreams.Subscriber<Resp>
public class ServerSubscriber<Resp> extends java.lang.Object implements org.reactivestreams.Subscriber<Resp>
-
-
Field Summary
Fields Modifier and Type Field Description java.util.concurrent.CompletableFuture<java.lang.Void>
completionFuture
-
Constructor Summary
Constructors Constructor Description ServerSubscriber(io.grpc.stub.ServerCallStreamObserver<Resp> responseObserver, ExecutionSequencer executionSequencer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onComplete()
void
onError(java.lang.Throwable throwable)
void
onNext(Resp response)
void
onSubscribe(org.reactivestreams.Subscription subscription)
protected java.lang.Throwable
translateThrowableInOnError(java.lang.Throwable throwable)
-
-
-
Constructor Detail
-
ServerSubscriber
public ServerSubscriber(@Nonnull io.grpc.stub.ServerCallStreamObserver<Resp> responseObserver, @Nonnull ExecutionSequencer executionSequencer)
-
-
Method Detail
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription subscription)
- Specified by:
onSubscribe
in interfaceorg.reactivestreams.Subscriber<Resp>
-
onNext
public void onNext(Resp response)
- Specified by:
onNext
in interfaceorg.reactivestreams.Subscriber<Resp>
-
onError
public void onError(java.lang.Throwable throwable)
- Specified by:
onError
in interfaceorg.reactivestreams.Subscriber<Resp>
-
onComplete
public void onComplete()
- Specified by:
onComplete
in interfaceorg.reactivestreams.Subscriber<Resp>
-
translateThrowableInOnError
protected java.lang.Throwable translateThrowableInOnError(java.lang.Throwable throwable)
-
-