Class/Object

io.funcqrs.interpreters

IdentityInterpreter

Related Docs: object IdentityInterpreter | package interpreters

Permalink

class IdentityInterpreter[A <: AggregateLike] extends Interpreter[A, Identity]

An Interpreter with F[_] bounded to Identity.

All command handling are interpreted to Identity of Events (ie: the pure value).

Will block on any async operation defined by Behavior.

This interpreter should be used for testing and / or for behaviors that preferably don't define any async operation.

A

- an Aggregate type

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. IdentityInterpreter
  2. Interpreter
  3. AggregateAliases
  4. ProtocolAliases
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IdentityInterpreter(behavior: Behavior[A], atMost: Duration = 5.seconds)

    Permalink

    behavior

    - a Aggregate Behavior

    atMost

    - the maximum duration we are to wait before Futures timeout.

Type Members

  1. type Aggregate = A

    Permalink

    The Aggregate type.

    The Aggregate type. This is the only (abstract) type member to be defined.

    All other type members are aliases defined by type projection of inner types from Aggregate type itself.

    Definition Classes
    InterpreterAggregateAliases
  2. type Command = ProtocolAliases.Protocol.ProtocolCommand

    Permalink

    Alias for Aggregate's ProtocolCommand

    Alias for Aggregate's ProtocolCommand

    Definition Classes
    ProtocolAliases
  3. type Event = ProtocolAliases.Protocol.ProtocolEvent

    Permalink

    Alias for Aggregate's ProtocolEvent

    Alias for Aggregate's ProtocolEvent

    Definition Classes
    ProtocolAliases
  4. type Events = Seq[Event]

    Permalink

    Alias for an immutable Seq of Aggregate's ProtocolEvent

    Alias for an immutable Seq of Aggregate's ProtocolEvent

    Definition Classes
    ProtocolAliases
  5. type Id = A.Id

    Permalink

    Alias for Aggregate#Id

    Alias for Aggregate#Id

    Definition Classes
    AggregateAliases
  6. type Protocol = A.Protocol

    Permalink

    Alias for Aggregate#Protocol

    Alias for Aggregate#Protocol

    Definition Classes
    AggregateAliasesProtocolAliases

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def applyCommand(cmd: Command, state: State[Aggregate]): Identity[(Events, State[A])]

    Permalink
    Definition Classes
    Interpreter
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val behavior: Behavior[A]

    Permalink

    - a Aggregate Behavior

    - a Aggregate Behavior

    Definition Classes
    IdentityInterpreterInterpreter
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. final def eventHandlerNotDefined(state: State[Aggregate], evts: Events): CommandException

    Permalink
    Attributes
    protected
    Definition Classes
    Interpreter
  11. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def onCommand(state: State[A], cmd: Command): Identity[Events]

    Permalink
    Definition Classes
    IdentityInterpreterInterpreter
  19. def onEvent(state: State[Aggregate], evt: Event): A

    Permalink
    Definition Classes
    Interpreter
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

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

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

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

Inherited from Interpreter[A, Identity]

Inherited from AggregateAliases

Inherited from ProtocolAliases

Inherited from AnyRef

Inherited from Any

Ungrouped