Package org.apache.pekko.stream.javadsl
Class JavaFlowSupport.Source
java.lang.Object
org.apache.pekko.stream.javadsl.JavaFlowSupport.Source
- Enclosing class:
- JavaFlowSupport
{@link org.apache.pekko.stream.javadsl.Flow]] factories operating with
java.util.concurrent.Flow.* interfaces.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Source<T,Flow.Subscriber<T>> Creates aSourcethat is materialized as aFlow.Subscriber.fromPublisher(Flow.Publisher<T> publisher) Helper to createSourcefromFlow.Publisher.
-
Method Details
-
fromPublisher
Helper to createSourcefromFlow.Publisher.Construct a transformation starting with given publisher. The transformation steps are executed by a series of
Flow.Processorinstances that mediate the flow of elements downstream and the propagation of back-pressure upstream.See also
Source.fromPublisherif wanting to integrate withPublisherinstead (which carries the same semantics, however existed before RS's inclusion in Java 9). -
asSubscriber
Creates aSourcethat is materialized as aFlow.Subscriber.See also
Source.asSubscriberif wanting to integrate withSubscriberinstead (which carries the same semantics, however existed before RS's inclusion in Java 9).
-