Package org.apache.pekko.stream.scaladsl
Class Partition$
java.lang.Object
org.apache.pekko.stream.scaladsl.Partition$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Partition$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Partition$
public Partition$()
-
-
Method Details
-
apply
Create a newPartitionoperator with the specified input type. This method setseagerCanceltofalse. To specify a different value for theeagerCancelparameter, then instantiate Partition using the constructor.If
eagerCancelis true, partition cancels upstream if any of its downstreams cancel, if false, when all have cancelled.- Parameters:
outputPorts- number of output portspartitioner- function deciding which output each element will be targeted
-