Class WrappedProcessor<T>

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

    public class WrappedProcessor<T>
    extends java.lang.Object
    implements org.reactivestreams.Processor<T,​T>
    Processor wrapping a publisher and subscriber, and connect them
    • Constructor Summary

      Constructors 
      Constructor Description
      WrappedProcessor​(org.reactivestreams.Subscriber<T> subscriber, org.reactivestreams.Publisher<T> publisher)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onComplete()  
      void onError​(java.lang.Throwable throwable)  
      void onNext​(T item)  
      void onSubscribe​(org.reactivestreams.Subscription subscription)  
      void subscribe​(org.reactivestreams.Subscriber<? super T> subscriber)  
      • Methods inherited from class java.lang.Object

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

      • WrappedProcessor

        public WrappedProcessor​(org.reactivestreams.Subscriber<T> subscriber,
                                org.reactivestreams.Publisher<T> publisher)
    • Method Detail

      • subscribe

        public void subscribe​(org.reactivestreams.Subscriber<? super T> subscriber)
        Specified by:
        subscribe in interface org.reactivestreams.Publisher<T>
      • 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​(java.lang.Throwable throwable)
        Specified by:
        onError in interface org.reactivestreams.Subscriber<T>
      • onComplete

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