Partition

org.apache.pekko.stream.scaladsl.Partition
See thePartition companion class
object Partition

Attributes

Companion
class
Source
Graph.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Partition.type

Members list

Type members

Classlikes

case class PartitionOutOfBoundsException(msg: String) extends IndexOutOfBoundsException, NoStackTrace

Attributes

Source
Graph.scala
Supertypes
trait Product
trait Equals
trait NoStackTrace
class IndexOutOfBoundsException
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply[T](outputPorts: Int, partitioner: T => Int): Partition[T]

Create a new Partition operator with the specified input type. This method sets eagerCancel to false. To specify a different value for the eagerCancel parameter, then instantiate Partition using the constructor.

Create a new Partition operator with the specified input type. This method sets eagerCancel to false. To specify a different value for the eagerCancel parameter, then instantiate Partition using the constructor.

If eagerCancel is true, partition cancels upstream if any of its downstreams cancel, if false, when all have cancelled.

Value parameters

outputPorts

number of output ports

partitioner

function deciding which output each element will be targeted

Attributes

Source
Graph.scala