Trait/Object

com.rbmhtechnology.eventuate

ConcurrentVersions

Related Docs: object ConcurrentVersions | package eventuate

Permalink

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
Visibility
  1. Public
  2. All

Abstract Value Members

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

    Permalink

    Returns all (un-resolved) concurrent versions.

  2. abstract def owner: String

    Permalink

    Owner of versioned values.

  3. abstract def resolve(selectedTimestamp: VectorTime, vectorTimestamp: VectorTime, systemTimestamp: Long = 0L): ConcurrentVersions[A, B]

    Permalink

    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 vectorTimestamp that is equal to selectedTimestamp. Only those concurrent versions with a vectorTimestamp less than the given vectorTimestamp participate in the resolution process (which allows for resolutions to be concurrent to other updates).

  4. abstract def update(b: B, vectorTimestamp: VectorTime, systemTimestamp: Long = 0L, creator: String = ""): ConcurrentVersions[A, B]

    Permalink

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

    Updates that Versioned value with b that is a predecessor of vectorTimestamp. 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]

    Permalink

    Updates the owner.

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

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

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

    Permalink

    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

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

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

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

    Permalink

    Java API of all.

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

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

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

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

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

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

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

    Permalink

    Experimental ...

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

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

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

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped