Module methanol

Class SerializedForwardingSubscriber<T>

  • All Implemented Interfaces:
    java.util.concurrent.Flow.Subscriber<T>
    Direct Known Subclasses:
    TimeoutSubscriber

    public abstract class SerializedForwardingSubscriber<T>
    extends ForwardingSubscriber<T>
    A forwarding subscriber that ensures the delegate isn't called concurrently.
    • Constructor Detail

      • SerializedForwardingSubscriber

        protected SerializedForwardingSubscriber()
    • Method Detail

      • onSubscribe

        public void onSubscribe​(java.util.concurrent.Flow.Subscription subscription)
        Specified by:
        onSubscribe in interface java.util.concurrent.Flow.Subscriber<T>
        Overrides:
        onSubscribe in class ForwardingSubscriber<T>
      • onNext

        public void onNext​(T item)
        Specified by:
        onNext in interface java.util.concurrent.Flow.Subscriber<T>
        Overrides:
        onNext in class ForwardingSubscriber<T>
      • onError

        public void onError​(java.lang.Throwable throwable)
        Specified by:
        onError in interface java.util.concurrent.Flow.Subscriber<T>
        Overrides:
        onError in class ForwardingSubscriber<T>
      • onComplete

        public void onComplete()
        Specified by:
        onComplete in interface java.util.concurrent.Flow.Subscriber<T>
        Overrides:
        onComplete in class ForwardingSubscriber<T>