public abstract class DeltaBasedCRDT extends CRDT implements DeltaCRDT
| Constructor and Description |
|---|
DeltaBasedCRDT(CRDTsTypes type,
ReplicaID replicaID) |
DeltaBasedCRDT(CRDTsTypes type,
VVState state) |
| Modifier and Type | Method and Description |
|---|---|
abstract DeltaBasedCRDT |
generateDelta(VersionVector vv)
Calculates a delta from a given version for the current state
|
ReplicaID |
getReplicaID()
Gets the replica identifier
|
VVState |
getReplicaState()
Gets the replica state.
|
abstract DeltaBasedCRDT |
mergeDelta(DeltaBasedCRDT delta)
Applies a delta to the current state.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopy, deserializeDataType, getType, serializeprotected VVState state
public DeltaBasedCRDT(CRDTsTypes type, VVState state)
public DeltaBasedCRDT(CRDTsTypes type, ReplicaID replicaID)
public ReplicaID getReplicaID()
DeltaCRDTgetReplicaID in interface DeltaCRDTpublic VVState getReplicaState()
DeltaCRDTgetReplicaState in interface DeltaCRDTpublic abstract DeltaBasedCRDT generateDelta(VersionVector vv)
DeltaCRDTgenerateDelta in interface DeltaCRDTvv - a version version to calculate the delta frompublic abstract DeltaBasedCRDT mergeDelta(DeltaBasedCRDT delta)
DeltaCRDTmergeDelta in interface DeltaCRDTdelta - a crdt representing the deltaCopyright © 2024. All rights reserved.