Trait/Object

io.strongtyped.funcqrs

Behavior

Related Docs: object Behavior | package funcqrs

Permalink

trait Behavior[A <: Aggregate] extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Behavior
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. type AggregateType = A

    Permalink
  2. type Command = Aggregate.Protocol.ProtocolCommand

    Permalink
  3. type Event = Aggregate.Protocol.ProtocolEvent

    Permalink
  4. type Events = Seq[Event]

    Permalink

Abstract Value Members

  1. abstract def applyEvent(event: Event, aggregate: AggregateType): AggregateType

    Permalink
  2. abstract def applyEvent(event: Event): AggregateType

    Permalink
  3. abstract def validateAsync(cmd: Command, aggregate: AggregateType)(implicit ec: ExecutionContext): Future[Events]

    Permalink
    Attributes
    protected
  4. abstract def validateAsync(cmd: Command)(implicit ec: ExecutionContext): Future[Event]

    Permalink
    Attributes
    protected

Concrete 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 applyAsyncCommand(cmd: Command, aggregate: AggregateType)(implicit ec: ExecutionContext): Future[(Events, AggregateType)]

    Permalink
    Attributes
    protected
  5. def applyAsyncCommand(cmd: Command)(implicit ec: ExecutionContext): Future[(Event, AggregateType)]

    Permalink
    Attributes
    protected
  6. def applyCommand(cmd: Command, aggregate: AggregateType): Future[(Events, AggregateType)]

    Permalink
  7. def applyCommand(cmd: Command): Future[(Event, AggregateType)]

    Permalink
  8. final def applyEvents(events: Events, aggregate: AggregateType): AggregateType

    Permalink

    Apply a list of events to an Aggregate

    Apply a list of events to an Aggregate

    returns

    the updated Aggregate

  9. final def asInstanceOf[T0]: T0

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def executionContext: ExecutionContext

    Permalink

    The ExecutionContext to be used when calling validateAsync methods.

    The ExecutionContext to be used when calling validateAsync methods. Defaults to scala.concurrent.ExecutionContext.global

    Override this method if you prefer to use another ExecutionContext.

    Note: this is done on purpose to avoid using the EC from Akka for instance. It's recommended to avoid using Akka's context.dispatcher to run client code.

    returns

    - ExecutionContext to be used when calling validateAsync methods.

  14. def finalize(): Unit

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def validate(cmd: Command, aggregate: AggregateType): Future[Events]

    Permalink
  24. def validate(cmd: Command): Future[Event]

    Permalink
  25. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped