Class 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  
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • completionFuture

        public java.util.concurrent.CompletableFuture<java.lang.Void> completionFuture
    • 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 interface org.reactivestreams.Subscriber<Resp>
      • onNext

        public void onNext​(Resp response)
        Specified by:
        onNext in interface org.reactivestreams.Subscriber<Resp>
      • onError

        public void onError​(java.lang.Throwable throwable)
        Specified by:
        onError in interface org.reactivestreams.Subscriber<Resp>
      • onComplete

        public void onComplete()
        Specified by:
        onComplete in interface org.reactivestreams.Subscriber<Resp>
      • translateThrowableInOnError

        protected java.lang.Throwable translateThrowableInOnError​(java.lang.Throwable throwable)