Handler
com.reactific.riddl.language.AST.Handler
case class Handler(loc: At, id: Identifier, clauses: Seq[OnClause], authors: Seq[AuthorRef], brief: Option[LiteralString], description: Option[Description]) extends Container[HandlerDefinition], AdaptorDefinition, ApplicationDefinition, ContextDefinition, EntityDefinition, StateDefinition, RepositoryDefinition, StreamletDefinition, ProjectorDefinition
A named handler of messages (commands, events, queries) that bundles together a set of OnMessageClause definitions and by doing so defines the behavior of an entity. Note that entities may define multiple handlers and switch between them to change how it responds to messages over time or in response to changing conditions
Value parameters
- brief
-
A brief description (one sentence) for use in documentation
- clauses
-
The set of OnMessageClause definitions that define how the entity responds to received messages.
- description
-
An optional description of the handler
- id
-
The name of the handler.
- loc
-
The location of the handler definition
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait ProjectorDefinitiontrait StreamletDefinitiontrait RepositoryDefinitiontrait StateDefinitiontrait EntityDefinitiontrait ContextDefinitiontrait ApplicationDefinitiontrait AdaptorDefinitiontrait Definitiontrait BrieflyDescribedValuetrait DescribedValuetrait Container[HandlerDefinition]trait RiddlValuetrait RiddlNodeclass Objecttrait Matchableclass Any
Members list
In this article