Package akka.stream.scaladsl
Class JavaFlowSupport.Sink$
- java.lang.Object
-
- akka.stream.scaladsl.JavaFlowSupport.Sink$
-
- Enclosing class:
- JavaFlowSupport
public static class JavaFlowSupport.Sink$ extends java.lang.Object
Sink
factories operating withjava.util.concurrent.Flow.*
interfaces.
-
-
Field Summary
Fields Modifier and Type Field Description static JavaFlowSupport.Sink$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description Sink$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Sink<T,java.util.concurrent.Flow.Publisher<T>>
asPublisher(boolean fanout)
ASink
that materializes into aFlow.Publisher
.<T> Sink<T,NotUsed>
fromSubscriber(java.util.concurrent.Flow.Subscriber<T> s)
Helper to createSink
fromFlow.Subscriber
.
-
-
-
Field Detail
-
MODULE$
public static final JavaFlowSupport.Sink$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
asPublisher
public final <T> Sink<T,java.util.concurrent.Flow.Publisher<T>> asPublisher(boolean fanout)
ASink
that materializes into aFlow.Publisher
.If
fanout
isWITH_FANOUT
, the materializedPublisher
will support multipleSubscriber
s and the size of theinputBuffer
configured for this operator becomes the maximum number of elements that the fastestFlow.Subscriber
can be ahead of the slowest one before slowing the processing down due to back pressure.If
fanout
isWITHOUT_FANOUT
then the materializedPublisher
will only support a singleSubscriber
and reject any additionalSubscriber
s.
-
-