RoutedBy

zio.blocks.projection.RoutingMode.RoutedBy
final case class RoutedBy[E](extractor: E => String) extends RoutingMode

Applies the event to the group named by a key read from the event itself, for example the owner of a repository.

Value parameters

extractor

reads the routing key from the event

Attributes

Source
Projection.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait RoutingMode
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def extractAny(value: Any): String

Runs the extractor on an event whose type is only known as Any. The cast is unchecked, so an event of the wrong type fails at runtime.

Runs the extractor on an event whose type is only known as Any. The cast is unchecked, so an event of the wrong type fails at runtime.

Attributes

Source
Projection.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala