object Sink
akka.stream.scaladsl.Sink factories operating with java.util.concurrent.Flow.*
interfaces.
- Source
- JavaFlowSupport.scala
- Alphabetic
- By Inheritance
- Sink
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def asPublisher[T](fanout: Boolean): Sink[T, Publisher[T]]
A
Sink
that materializes into a java.util.concurrent.Flow.Publisher.A
Sink
that materializes into a java.util.concurrent.Flow.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 fastest java.util.concurrent.Flow.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. - final def fromSubscriber[T](s: Subscriber[T]): Sink[T, NotUsed]
Helper to create Sink from java.util.concurrent.Flow.Subscriber.