DeltaBufferRDT

kofre.decompose.containers.DeltaBufferRDT
See theDeltaBufferRDT companion object
class DeltaBufferRDT[State](val state: Dotted[State], val replicaID: String, val deltaBuffer: List[DottedName[State]]) extends CRDTInterface[State, DeltaBufferRDT[State]]

ReactiveCRDTs are Delta CRDTs that store applied deltas in their deltaBuffer attribute. Middleware should regularly take these deltas and ship them to other replicas, using applyDelta to apply them on the remote state. After deltas have been read and propagated by the middleware, it should call resetDeltaBuffer to empty the deltaBuffer.

Attributes

Companion:
object
Graph
Supertypes
trait CRDTInterface[State, DeltaBufferRDT[State]]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def applyDelta(delta: DottedName[State])(implicit u: DecomposeLattice[Dotted[State]]): DeltaBufferRDT[State]

Attributes

Definition Classes
def copy(state: Dotted[State], deltaBuffer: List[DottedName[State]]): DeltaBufferRDT[State]

Concrete fields

val deltaBuffer: List[DottedName[State]]
val replicaID: String
val state: Dotted[State]