RoutingMode

zio.blocks.projection.RoutingMode
See theRoutingMode companion trait
object RoutingMode

Attributes

Companion
trait
Source
Projection.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case object RouteToAll extends RoutingMode

Applies every event to the same store, whichever entity it belongs to. It produces no routing key. Use it for totals and other global aggregates, together with Projection.global.

Applies every event to the same store, whichever entity it belongs to. It produces no routing key. Use it for totals and other global aggregates, together with Projection.global.

Attributes

Source
Projection.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait RoutingMode
class Object
trait Matchable
class Any
Show all
Self type
RouteToAll.type
case object RouteToSelf extends RoutingMode

Applies the event to the entity it was recorded under, that is ctx.entityId. This is the default when a handler is added without a source.

Applies the event to the entity it was recorded under, that is ctx.entityId. This is the default when a handler is added without a source.

Attributes

Source
Projection.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait RoutingMode
class Object
trait Matchable
class Any
Show all
Self type
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.

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
Supertypes
trait Serializable
trait Product
trait Equals
trait RoutingMode
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala