Class EventListeningSubscriber<T>

  • All Implemented Interfaces:
    org.reactivestreams.Subscriber<T>

    public final class EventListeningSubscriber<T>
    extends DelegatingSubscriber<T,​T>
    A Subscriber that can invoke callbacks during various parts of the subscriber and subscription lifecycle.
    • Constructor Detail

      • EventListeningSubscriber

        public EventListeningSubscriber​(org.reactivestreams.Subscriber<T> subscriber,
                                        Runnable afterCompleteListener,
                                        Consumer<Throwable> afterErrorListener,
                                        Runnable afterCancelListener)
    • Method Detail

      • onNext

        public void onNext​(T t)
      • onSubscribe

        public void onSubscribe​(org.reactivestreams.Subscription subscription)
        Specified by:
        onSubscribe in interface org.reactivestreams.Subscriber<T>
        Overrides:
        onSubscribe in class DelegatingSubscriber<T,​T>
      • onComplete

        public void onComplete()
        Specified by:
        onComplete in interface org.reactivestreams.Subscriber<T>
        Overrides:
        onComplete in class DelegatingSubscriber<T,​T>