Class FlowAdapters.FlowToReactiveProcessor<T,​U>

  • Type Parameters:
    T - the input type
    U - the output type
    All Implemented Interfaces:
    java.util.concurrent.Flow.Processor<T,​U>, java.util.concurrent.Flow.Publisher<U>, java.util.concurrent.Flow.Subscriber<T>
    Enclosing class:
    FlowAdapters

    static final class FlowAdapters.FlowToReactiveProcessor<T,​U>
    extends java.lang.Object
    implements java.util.concurrent.Flow.Processor<T,​U>
    Wraps a Reactive Streams Processor and forwards methods of the Flow Processor to it.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onComplete()  
      void onError​(java.lang.Throwable t)  
      void onNext​(T t)  
      void onSubscribe​(java.util.concurrent.Flow.Subscription subscription)  
      void subscribe​(java.util.concurrent.Flow.Subscriber<? super U> s)  
      • Methods inherited from class java.lang.Object

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

      • reactiveStreams

        final Processor<? super T,​? extends U> reactiveStreams
    • Constructor Detail

      • FlowToReactiveProcessor

        public FlowToReactiveProcessor​(Processor<? super T,​? extends U> reactive)
    • Method Detail

      • onSubscribe

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

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

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

        public void onComplete()
        Specified by:
        onComplete in interface java.util.concurrent.Flow.Subscriber<T>
      • subscribe

        public void subscribe​(java.util.concurrent.Flow.Subscriber<? super U> s)
        Specified by:
        subscribe in interface java.util.concurrent.Flow.Publisher<T>