Package org.apache.pekko.stream.javadsl
Class JavaFlowSupport.Sink
java.lang.Object
org.apache.pekko.stream.javadsl.JavaFlowSupport.Sink
- Enclosing class:
- JavaFlowSupport
Sink factories operating with
java.util.concurrent.Flow.* interfaces.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Sink<T,Flow.Publisher<T>> asPublisher(AsPublisher fanout) A `Sink` that materializes into aFlow.Publisher.Helper to create <> from <<java.util.concurrent.Flow.Subscriber>>.
-
Method Details
-
asPublisher
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. -
fromSubscriber
Helper to create <> from <<java.util.concurrent.Flow.Subscriber>>.
-