com.rbmhtechnology.eventuate

ConcurrentVersions

trait ConcurrentVersions[A, B] extends Serializable

Tracks concurrent Versioned values which arise from concurrent updates.

A

Versioned value type

B

Update type

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ConcurrentVersions
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def all: Seq[Versioned[A]]

    Returns all (un-resolved) concurrent versions.

  2. abstract def owner: String

    Owner of versioned values.

  3. abstract def resolve(selectedTimestamp: VectorTime, updateTimestamp: VectorTime): ConcurrentVersions[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).

  4. abstract def update(b: B, updateTimestamp: VectorTime, creator: String = ""): ConcurrentVersions[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).

  5. abstract def withOwner(owner: String): ConcurrentVersions[A, B]

    Updates the owner.

Concrete 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. 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.

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

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

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

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

    Java API.

    Java API.

    Returns all (un-resolved) concurrent versions.

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

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

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

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

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

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

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

    Experimental ...

  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  19. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped