Class FlowAdapters.FlowToReactiveSubscriber<T>
java.lang.Object
org.reactivestreams.FlowAdapters.FlowToReactiveSubscriber<T>
- Type Parameters:
T- the element type
- All Implemented Interfaces:
Flow.Subscriber<T>
- Enclosing class:
FlowAdapters
static final class FlowAdapters.FlowToReactiveSubscriber<T>
extends Object
implements Flow.Subscriber<T>
Wraps a Reactive Streams Subscriber and forwards methods of the Flow Subscriber to it.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidonSubscribe(Flow.Subscription subscription)
-
Field Details
-
reactiveStreams
-
-
Constructor Details
-
FlowToReactiveSubscriber
-
-
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>
-