public class DeltaMVRegister extends DeltaCausalBasedCRDT
| Modifier and Type | Field and Description |
|---|---|
static pt.unl.fct.di.novasys.network.ISerializer<DeltaMVRegister> |
serializer
A serializer that serializes the CRDT into (and from) a ByteBuf.
|
state| Constructor and Description |
|---|
DeltaMVRegister(CausalContext state) |
DeltaMVRegister(CausalContext state,
SerializableType initialValue) |
DeltaMVRegister(ReplicaID replicaID) |
DeltaMVRegister(ReplicaID replicaID,
SerializableType initialValue) |
| Modifier and Type | Method and Description |
|---|---|
DeltaMVRegister |
assign(SerializableType element) |
boolean |
contains(SerializableType element) |
GenericCRDT |
copy()
Creates a copy of the CRDT.
|
DeltaMVRegister |
generateDelta(VersionVector vv)
Calculates a delta from a given version for the current state
|
Set<SerializableType> |
get() |
CausalContext |
getCausalContext() |
DeltaMVRegister |
mergeDelta(DeltaBasedCRDT delta)
Applies a delta to the current state.
|
DeltaMVRegister |
reset() |
void |
serialize(io.netty.buffer.ByteBuf in)
Serializes the CRDT into a ByteBuf
|
getReplicaID, getReplicaStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeserializeDataType, getTypepublic static pt.unl.fct.di.novasys.network.ISerializer<DeltaMVRegister> serializer
public DeltaMVRegister(CausalContext state)
public DeltaMVRegister(ReplicaID replicaID)
public DeltaMVRegister(ReplicaID replicaID, SerializableType initialValue)
public DeltaMVRegister(CausalContext state, SerializableType initialValue)
public DeltaMVRegister assign(SerializableType element)
public boolean contains(SerializableType element)
public Set<SerializableType> get()
public DeltaMVRegister reset()
public GenericCRDT copy()
GenericCRDTpublic CausalContext getCausalContext()
public void serialize(io.netty.buffer.ByteBuf in)
throws IOException
GenericCRDTin - ByteBuf to serialize the CRDT toIOException - if an error occurs while serializingpublic DeltaMVRegister generateDelta(VersionVector vv)
DeltaCRDTgenerateDelta in interface DeltaCRDTgenerateDelta in class DeltaCausalBasedCRDTvv - a version version to calculate the delta frompublic DeltaMVRegister mergeDelta(DeltaBasedCRDT delta)
DeltaCRDTmergeDelta in interface DeltaCRDTmergeDelta in class DeltaCausalBasedCRDTdelta - a crdt representing the deltaCopyright © 2024. All rights reserved.