Package akka.stream.javadsl
Class JavaFlowSupport.Sink
- java.lang.Object
-
- akka.stream.javadsl.JavaFlowSupport.Sink
-
- Enclosing class:
- JavaFlowSupport
public static final class JavaFlowSupport.Sink extends java.lang.ObjectSinkfactories operating withjava.util.concurrent.Flow.*interfaces.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> Sink<T,java.util.concurrent.Flow.Publisher<T>>asPublisher(AsPublisher fanout)A `Sink` that materializes into aFlow.Publisher.static <T> Sink<T,NotUsed>fromSubscriber(java.util.concurrent.Flow.Subscriber<T> s)Helper to create <> from < >.
-
-
-
Method Detail
-
asPublisher
public static <T> Sink<T,java.util.concurrent.Flow.Publisher<T>> asPublisher(AsPublisher fanout)
A `Sink` that 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.
-
-