Class FlowAdapters.ReactivePublisherFromFlow<T>
java.lang.Object
org.reactivestreams.FlowAdapters.ReactivePublisherFromFlow<T>
- Type Parameters:
T- the element type
- All Implemented Interfaces:
Publisher<T>
- Enclosing class:
FlowAdapters
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsubscribe(Subscriber<? super T> reactive) RequestPublisherto start streaming data.
-
Field Details
-
flow
-
-
Constructor Details
-
ReactivePublisherFromFlow
-
-
Method Details
-
subscribe
Description copied from interface:PublisherRequestPublisherto start streaming data.This is a "factory method" and can be called multiple times, each time starting a new
Subscription.Each
Subscriptionwill work for only a singleSubscriber.A
Subscribershould only subscribe once to a singlePublisher.If the
Publisherrejects the subscription attempt or otherwise fails it will signal the error viaSubscriber.onError(Throwable).- Specified by:
subscribein interfacePublisher<T>- Parameters:
reactive- theSubscriberthat will consume signals from thisPublisher
-