SourceBinding
zio.blocks.projection.SourceBinding
final case class SourceBinding[E, A](sourceName: String, routing: RoutingMode, handlers: List[Handler[_, A]])
The rules a Projection applies to one named event source: how its events are routed, and which handlers react to them.
A binding is added by from(sourceName) followed by a routing call, and each on[E] handler is then attached to the most recently added binding. The type parameter E is not used by any field.
Value parameters
- handlers
-
the handlers for this source, tried in the order they were added
- routing
-
how events from this source are routed
- sourceName
-
the name of the event source, as given to
Projection.from
Attributes
- Source
- Projection.scala
- Graph
-
- Supertypes
Members list
In this article