public class CounterOperation extends Operation
| Modifier and Type | Field and Description |
|---|---|
static pt.unl.fct.di.novasys.network.ISerializer<CounterOperation> |
serializer
A serializer that serializes a CounterOperation into (and from) a ByteBuf.
|
| Constructor and Description |
|---|
CounterOperation(OperationType opType,
String crdtId,
CRDTsTypes crdtType,
int value)
Creates a counter operation
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
public static pt.unl.fct.di.novasys.network.ISerializer<CounterOperation> serializer
public CounterOperation(OperationType opType, String crdtId, CRDTsTypes crdtType, int value)
opType - the operation type (i.e., increment or decrement)crdtId - the CRDT identifiercrdtType - the CRDT type where the operation was issued (e.g., OpCounter)value - the value of the counterCopyright © 2024. All rights reserved.