Package org.apache.pekko.stream.scaladsl
Class Balance$
java.lang.Object
org.apache.pekko.stream.scaladsl.Balance$
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Balance$
public Balance$()
-
-
Method Details
-
apply
Create a newBalancewith the specified number of output ports. This method setseagerCanceltofalse. To specify a different value for theeagerCancelparameter, then instantiate Balance using the constructor.If
eagerCancelis true, balance cancels upstream if any of its downstreams cancel, if false, when all have cancelled.- Parameters:
outputPorts- number of output portswaitForAllDownstreams- if you usewaitForAllDownstreams = trueit will not start emitting elements to downstream outputs until all of them have requested at least one element, default value isfalse
-
apply$default$2
public <T> boolean apply$default$2()
-