Packages

case class Handler(loc: At, id: Definitions.Identifier, clauses: Seq[OnClause] = Seq.empty[OnClause], authors: Seq[AuthorRef] = Seq.empty[AuthorRef], brief: Option[Definitions.LiteralString] = Option.empty[LiteralString], description: Option[Definitions.Description] = None) extends Container[HandlerDefinition] with AdaptorDefinition with ApplicationDefinition with ContextDefinition with EntityDefinition with StateDefinition with RepositoryDefinition with StreamletDefinition with ProjectionDefinition with Product with Serializable

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

loc

The location of the handler definition

id

The name of the handler.

clauses

The set of OnMessageClause definitions that define how the entity responds to received messages.

brief

A brief description (one sentence) for use in documentation

description

An optional description of the handler

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Handler
  2. Serializable
  3. Product
  4. Equals
  5. ProjectionDefinition
  6. StreamletDefinition
  7. RepositoryDefinition
  8. StateDefinition
  9. EntityDefinition
  10. ContextDefinition
  11. ApplicationDefinition
  12. AdaptorDefinition
  13. Definition
  14. BrieflyDescribedValue
  15. DescribedValue
  16. Container
  17. RiddlValue
  18. RiddlNode
  19. AnyRef
  20. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Handler(loc: At, id: Definitions.Identifier, clauses: Seq[OnClause] = Seq.empty[OnClause], authors: Seq[AuthorRef] = Seq.empty[AuthorRef], brief: Option[Definitions.LiteralString] = Option.empty[LiteralString], description: Option[Definitions.Description] = None)

    loc

    The location of the handler definition

    id

    The name of the handler.

    clauses

    The set of OnMessageClause definitions that define how the entity responds to received messages.

    brief

    A brief description (one sentence) for use in documentation

    description

    An optional description of the handler

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val authors: Seq[AuthorRef]
  6. val brief: Option[Definitions.LiteralString]
    Definition Classes
    HandlerBrieflyDescribedValue
  7. def briefValue: String
    Definition Classes
    BrieflyDescribedValue
  8. val clauses: Seq[OnClause]
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  10. def contents: Seq[HandlerDefinition]
    Definition Classes
    HandlerContainer
  11. val description: Option[Definitions.Description]
    Definition Classes
    HandlerDescribedValue
  12. def descriptionValue: String
    Definition Classes
    DescribedValue
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def find(name: String): Option[Definitions.Definition]
    Definition Classes
    Definition
  15. def format: String

    Format the node to a string

    Format the node to a string

    Definition Classes
    HandlerRiddlNode
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  17. def hasAuthors: Boolean
    Definition Classes
    Definition
  18. def hasOptions: Boolean
    Definition Classes
    Definition
  19. def hasTypes: Boolean
    Definition Classes
    Definition
  20. val id: Definitions.Identifier
    Definition Classes
    HandlerDefinition
  21. def identify: String
    Definition Classes
    Definition
  22. def identifyWithLoc: String
    Definition Classes
    Definition
  23. def isContainer: Boolean

    Determine if this node is a container or not

    Determine if this node is a container or not

    Definition Classes
    ContainerRiddlNode
  24. def isEmpty: Boolean

    determine if this node is empty or not.

    determine if this node is empty or not. Non-containers are always empty

    Definition Classes
    HandlerContainerRiddlNode
  25. def isImplicit: Boolean
    Definition Classes
    Definition
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. def isRootContainer: Boolean
    Definition Classes
    Container
  28. def isVital: Boolean
    Definition Classes
    Definition
  29. final val kind: String
    Definition Classes
    HandlerDefinition
  30. val loc: At

    The location in the parse at which this RiddlValue occurs

    The location in the parse at which this RiddlValue occurs

    Definition Classes
    HandlerRiddlValue
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def nonEmpty: Boolean
    Definition Classes
    RiddlNode
    Annotations
    @deprecatedOverriding()
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  35. def productElementNames: Iterator[String]
    Definition Classes
    Product
  36. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from StreamletDefinition

Inherited from RepositoryDefinition

Inherited from EntityDefinition

Inherited from ContextDefinition

Inherited from ApplicationDefinition

Inherited from AdaptorDefinition

Inherited from Definitions.Definition

Inherited from Definitions.RiddlValue

Inherited from Definitions.RiddlNode

Inherited from AnyRef

Inherited from Any

Ungrouped