com.rbmhtechnology.eventuate

ConcurrentVersionsTree

class ConcurrentVersionsTree[A, B] extends ConcurrentVersions[A, B]

A ConcurrentVersions implementation that shall be used if updates are incremental. ConcurrentVersionsTree is a mutable data structure. Therefore, it is recommended not to share instances of ConcurrentVersionsTree directly but rather the Versioned sequence returned by ConcurrentVersionsTree#all. Later releases will be based on an immutable data structure.

Please note: This implementation does not purge old versions at the moment (which shouldn't be a problem if the number of incremental updates to a versioned aggregate is rather small). In later releases, manual and automated purging of old versions will be supported.

Linear Supertypes
ConcurrentVersions[A, B], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ConcurrentVersionsTree
  2. ConcurrentVersions
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConcurrentVersionsTree(root: Node[A])

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. def all: Seq[Versioned[A]]

    Returns all (un-resolved) concurrent versions.

    Returns all (un-resolved) concurrent versions.

    Definition Classes
    ConcurrentVersionsTreeConcurrentVersions
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def conflict: Boolean

    Returns true if there is more than one version available i.e.

    Returns true if there is more than one version available i.e. if there are multiple concurrent (= conflicting) versions.

    Definition Classes
    ConcurrentVersions
  8. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def getAll: List[Versioned[A]]

    Java API.

    Java API.

    Returns all (un-resolved) concurrent versions.

    Definition Classes
    ConcurrentVersions
  12. final def getClass(): Class[_]

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

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

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

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

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

    Definition Classes
    AnyRef
  18. def owner: String

    Owner of versioned values.

    Owner of versioned values.

    Definition Classes
    ConcurrentVersionsTreeConcurrentVersions
  19. def resolve(selectedTimestamp: VectorTime, updateTimestamp: VectorTime): ConcurrentVersionsTree[A, B]

    Resolves multiple concurrent versions to a single version.

    Resolves multiple concurrent versions to a single version. For the resolution to be successful, one of the concurrent versions must have a creationTimestamp that is equal to selectedTimestamp. Only those concurrent versions with a creationTimestamp less than the updateTimestamp participate in the resolution process (which allows for resolutions to be concurrent to other updates).

    Definition Classes
    ConcurrentVersionsTreeConcurrentVersions
  20. def resolve(selectedTimestamp: VectorTime): ConcurrentVersions[A, B]

    Experimental ...

    Experimental ...

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

    Definition Classes
    AnyRef
  22. def toString(): String

    Definition Classes
    AnyRef → Any
  23. def update(b: B, updateTimestamp: VectorTime, creator: String = ""): ConcurrentVersionsTree[A, B]

    Updates that Versioned value with b that is a predecessor of updateTimestamp.

    Updates that Versioned value with b that is a predecessor of updateTimestamp. If there is no such predecessor, a new concurrent version is created (optionally derived from an older entry in the version history, in case of incremental updates).

    Definition Classes
    ConcurrentVersionsTreeConcurrentVersions
  24. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def withOwner(owner: String): ConcurrentVersionsTree[A, B]

    Updates the owner.

    Updates the owner.

    Definition Classes
    ConcurrentVersionsTreeConcurrentVersions
  28. def withProjection(f: BiFunction[A, B, A]): ConcurrentVersionsTree[A, B]

  29. def withProjection(f: (A, B) ⇒ A): ConcurrentVersionsTree[A, B]

Inherited from ConcurrentVersions[A, B]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped