Class FlowAdapters.FlowToReactiveProcessor<T,U>
java.lang.Object
org.reactivestreams.FlowAdapters.FlowToReactiveProcessor<T,U>
- Type Parameters:
T- the input typeU- the output type
- All Implemented Interfaces:
Flow.Processor<T,U>, Flow.Publisher<U>, Flow.Subscriber<T>
- Enclosing class:
FlowAdapters
static final class FlowAdapters.FlowToReactiveProcessor<T,U>
extends Object
implements Flow.Processor<T,U>
Wraps a Reactive Streams Processor and forwards methods of the Flow Processor to it.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidonSubscribe(Flow.Subscription subscription) voidsubscribe(Flow.Subscriber<? super U> s)
-
Field Details
-
reactiveStreams
-
-
Constructor Details
-
FlowToReactiveProcessor
-
-
Method Details
-
onSubscribe
- Specified by:
onSubscribein interfaceFlow.Subscriber<T>
-
onNext
- Specified by:
onNextin interfaceFlow.Subscriber<T>
-
onError
- Specified by:
onErrorin interfaceFlow.Subscriber<T>
-
onComplete
public void onComplete()- Specified by:
onCompletein interfaceFlow.Subscriber<T>
-
subscribe
- Specified by:
subscribein interfaceFlow.Publisher<T>
-