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.ObjectSinkfactories 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)ASinkthat materializes into aFlow.Publisher.<T> Sink<T,NotUsed>fromSubscriber(java.util.concurrent.Flow.Subscriber<T> s)Helper to createSinkfromFlow.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)
ASinkthat materializes into aFlow.Publisher.If
fanoutisWITH_FANOUT, the materializedPublisherwill support multipleSubscribers and the size of theinputBufferconfigured for this operator becomes the maximum number of elements that the fastestFlow.Subscribercan be ahead of the slowest one before slowing the processing down due to back pressure.If
fanoutisWITHOUT_FANOUTthen the materializedPublisherwill only support a singleSubscriberand reject any additionalSubscribers.
-
-