Class SubscriberWrapper<I,​T>

  • All Implemented Interfaces:
    org.reactivestreams.Processor<T,​T>, org.reactivestreams.Publisher<T>, org.reactivestreams.Subscriber<T>

    public class SubscriberWrapper<I,​T>
    extends Object
    implements org.reactivestreams.Processor<T,​T>
    • Method Detail

      • subscribe

        public void subscribe​(org.reactivestreams.Subscriber<? super T> s)
        Gets call with the downstream subscriber (from reactive messaging)
        Specified by:
        subscribe in interface org.reactivestreams.Publisher<I>
        Parameters:
        s - the downstream subscriber
      • onSubscribe

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

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

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

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