com.rbmhtechnology.eventuate

VersionedAggregate

case class VersionedAggregate[S, C, E](id: String, cmdHandler: (S, C) ⇒ Try[E], evtHandler: (S, E) ⇒ S, aggregate: Option[ConcurrentVersions[S, E]] = None)(implicit evidence$1: DomainCmd[C], evidence$2: DomainEvt[E]) extends Product with Serializable

Manages concurrent versions of an event-sourced aggregate.

S

Aggregate type.

C

Command type.

E

Event type.

id

Aggregate id

cmdHandler

Command handler

evtHandler

Event handler

aggregate

Aggregate.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. VersionedAggregate
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VersionedAggregate(id: String, cmdHandler: (S, C) ⇒ Try[E], evtHandler: (S, E) ⇒ S, aggregate: Option[ConcurrentVersions[S, E]] = None)(implicit arg0: DomainCmd[C], arg1: DomainEvt[E])

    id

    Aggregate id

    cmdHandler

    Command handler

    evtHandler

    Event handler

    aggregate

    Aggregate.

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. val C: DomainCmd[C]

  5. val E: DomainEvt[E]

  6. val aggregate: Option[ConcurrentVersions[S, E]]

    Aggregate.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val cmdHandler: (S, C) ⇒ Try[E]

    Command handler

  10. def doValidateCreate(cmd: C): E

    Java API.

  11. def doValidateResolve(selected: Int, origin: String): Resolved

    Java API.

  12. def doValidateUpdate(cmd: C): E

    Java API.

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. val evtHandler: (S, E) ⇒ S

    Event handler

  15. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def getAggregate: Optional[ConcurrentVersions[S, E]]

    Java API.

  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def getVersions: List[Versioned[S]]

    Java API.

  19. def handleCreated(evt: E, timestamp: VectorTime, sequenceNr: Long): VersionedAggregate[S, C, E]

  20. def handleResolved(evt: Resolved, updateTimestamp: VectorTime, sequenceNr: Long): VersionedAggregate[S, C, E]

  21. def handleUpdated(evt: E, timestamp: VectorTime, sequenceNr: Long): VersionedAggregate[S, C, E]

  22. val id: String

    Aggregate id

  23. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  28. def validateCreate(cmd: C): Try[E]

  29. def validateResolve(selected: Int, origin: String): Try[Resolved]

  30. def validateUpdate(cmd: C): Try[E]

  31. def versions: Seq[Versioned[S]]

  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def withAggregate(aggregate: ConcurrentVersions[S, E]): VersionedAggregate[S, C, E]

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped