Trait/Object

io.funcqrs

Behavior

Related Docs: object Behavior | package funcqrs

Permalink

trait Behavior[A <: AggregateLike] extends AggregateAliases

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

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
    BehaviorAggregateAliases
  2. type Command = AggregateLike.Protocol.ProtocolCommand

    Permalink

    Alias for Aggregate's ProtocolCommand

    Alias for Aggregate's ProtocolCommand

    Definition Classes
    ProtocolAliases
  3. type Event = AggregateLike.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

Abstract Value Members

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

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

    Permalink
  3. abstract def isEventDefined(event: Event, aggregate: Aggregate): Boolean

    Permalink
  4. abstract def isEventDefined(event: Event): Boolean

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

    Permalink
    Attributes
    protected
  6. 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: Aggregate)(implicit ec: ExecutionContext): Future[(Events, Aggregate)]

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

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

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

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

    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: Aggregate): 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 AggregateAliases

Inherited from ProtocolAliases

Inherited from AnyRef

Inherited from Any

Ungrouped