Package akka.stream.scaladsl
Class JavaFlowSupport.Source$
- java.lang.Object
-
- akka.stream.scaladsl.JavaFlowSupport.Source$
-
- Enclosing class:
- JavaFlowSupport
public static class JavaFlowSupport.Source$ extends java.lang.ObjectSourcefactories operating withjava.util.concurrent.Flow.*interfaces.
-
-
Field Summary
Fields Modifier and Type Field Description static JavaFlowSupport.Source$MODULE$Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description Source$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Source<T,java.util.concurrent.Flow.Subscriber<T>>asSubscriber()Creates aSourcethat is materialized as aFlow.Subscriber<T> Source<T,NotUsed>fromPublisher(java.util.concurrent.Flow.Publisher<T> publisher)Helper to createSourcefromFlow.Publisher.
-
-
-
Field Detail
-
MODULE$
public static final JavaFlowSupport.Source$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
fromPublisher
public final <T> Source<T,NotUsed> fromPublisher(java.util.concurrent.Flow.Publisher<T> publisher)
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:
also if wanting to integrate with instead (which carries the same semantics, however existed before RS's inclusion in Java 9).
-
asSubscriber
public final <T> Source<T,java.util.concurrent.Flow.Subscriber<T>> asSubscriber()
Creates aSourcethat is materialized as aFlow.Subscriber- See Also:
also if wanting to integrate with instead (which carries the same semantics, however existed before RS's inclusion in Java 9).
-
-