public class DeltaAWORSet extends DeltaCausalBasedCRDT
| Modifier and Type | Field and Description |
|---|---|
static pt.unl.fct.di.novasys.network.ISerializer<DeltaAWORSet> |
serializer
A serializer that serializes the CRDT into (and from) a ByteBuf.
|
state| Constructor and Description |
|---|
DeltaAWORSet(CausalContext state) |
DeltaAWORSet(CausalContext state,
SerializableType initialValue) |
DeltaAWORSet(ReplicaID replicaID) |
DeltaAWORSet(ReplicaID replicaID,
SerializableType initialValue) |
| Modifier and Type | Method and Description |
|---|---|
DeltaAWORSet |
add(SerializableType element) |
GenericCRDT |
copy()
Creates a copy of the CRDT.
|
DeltaAWORSet |
generateDelta(VersionVector vv)
Calculates a delta from a given version for the current state
|
CausalContext |
getCausalContext() |
Iterator<SerializableType> |
iterator() |
boolean |
lookup(SerializableType element) |
DeltaAWORSet |
mergeDelta(DeltaBasedCRDT delta)
Applies a delta to the current state.
|
DeltaAWORSet |
remove(SerializableType element) |
DeltaAWORSet |
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<DeltaAWORSet> serializer
public DeltaAWORSet(CausalContext state)
public DeltaAWORSet(ReplicaID replicaID)
public DeltaAWORSet(ReplicaID replicaID, SerializableType initialValue)
public DeltaAWORSet(CausalContext state, SerializableType initialValue)
public DeltaAWORSet add(SerializableType element)
public DeltaAWORSet remove(SerializableType element)
public boolean lookup(SerializableType element)
public Iterator<SerializableType> iterator()
public DeltaAWORSet reset()
public GenericCRDT copy()
GenericCRDTpublic void serialize(io.netty.buffer.ByteBuf in)
throws IOException
GenericCRDTin - ByteBuf to serialize the CRDT toIOException - if an error occurs while serializingpublic DeltaAWORSet generateDelta(VersionVector vv)
DeltaCRDTgenerateDelta in interface DeltaCRDTgenerateDelta in class DeltaCausalBasedCRDTvv - a version version to calculate the delta frompublic DeltaAWORSet mergeDelta(DeltaBasedCRDT delta)
DeltaCRDTmergeDelta in interface DeltaCRDTmergeDelta in class DeltaCausalBasedCRDTdelta - a crdt representing the deltapublic CausalContext getCausalContext()
Copyright © 2024. All rights reserved.