Class HybridSubscriber.SubscriberReference<T>

  • Type Parameters:
    T - type of the item
    All Implemented Interfaces:
    org.reactivestreams.Subscriber<T>
    Enclosing interface:
    HybridSubscriber<T>

    public static class HybridSubscriber.SubscriberReference<T>
    extends Object
    implements org.reactivestreams.Subscriber<T>
    Simple releasable subscriber reference. https://github.com/reactive-streams/reactive-streams-jvm#3.13
    • Method Detail

      • onSubscribe

        public void onSubscribe​(org.reactivestreams.Subscription subscription)
        Specified by:
        onSubscribe in interface org.reactivestreams.Subscriber<T>
      • onNext

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

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

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