Class/Object

io.funcqrs.behavior

Actions

Related Docs: object Actions | package behavior

Permalink

case class Actions[A, C, E] extends Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Actions
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Aggregate = A

    Permalink
  2. type Command = C

    Permalink
  3. type Event = E

    Permalink
  4. type Events = Seq[Event]

    Permalink
  5. type TypedActions = Actions[Aggregate, Command, Event]

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++(that: Actions[A, C, E]): Actions[A, C, E]

    Permalink

    Concatenate this Actions with that Actions

  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def commandHandler[F[_], G[_]](cmdHandler: CommandHandler[C, E, F, G]): TypedActions

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def eventHandler(handler: EventHandler[E, A]): TypedActions

    Permalink

    Declares an event handler

    Declares an event handler

    handler

    - the event handler function

    returns

    an Actions for A

  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. def onCommand(cmd: Command): CommandHandlerInvoker[Command, Event]

    Permalink

    Returns a CommandHandlerInvoker for the passed Command.

    Returns a CommandHandlerInvoker for the passed Command. Invokers are delayed execution of Command Handlers and abstract over the Functor that will be returned when handling the command.

    Internally, this method calls the declared Command Handlers.

  17. def onEvent(evt: Event): Aggregate

    Permalink

    Applies the passed Event producing a new instance of Aggregate.

    Applies the passed Event producing a new instance of Aggregate. Internally, this method calls the declared Event Handlers.

    Exceptions thrown

    MissingEventHandlerException if no Event handler is defined for the passed event.

  18. def reject(cmdHandler: PartialFunction[C, Throwable]): Actions[A, C, E]

    Permalink

    Declares a guard clause that reject commands that fulfill a given condition.

    Declares a guard clause that reject commands that fulfill a given condition.

    A guard clause is a Command Handler as it handles an incoming command, but instead of producing Event, it returns a Throwable to signalize an error condition.

    Guard clauses command handlers have precedence over handlers producing Events.

    cmdHandler

    - a PartialFunction from Command to Throwable.

    returns

    - return a Actions.

  19. def rejectCommand(cmdHandler: PartialFunction[C, Throwable]): Actions[A, C, E]

    Permalink

    Alias to reject

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped