public abstract class Operation extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
crdtId |
protected CRDTsTypes |
crdtType |
protected OperationType |
opType |
| Constructor and Description |
|---|
Operation(OperationType opType,
String crdtId,
CRDTsTypes crdtType)
Creates a generic operation
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getCrdtId()
Get the CRDT identifier
|
CRDTsTypes |
getCrdtType()
Gets the CRDT type
|
OperationType |
getOpType()
Get the operation type
|
int |
hashCode() |
static void |
serialize(Operation op,
io.netty.buffer.ByteBuf out)
Static method that serializes the operation generic information into a ByteBuf.
|
protected final OperationType opType
protected final String crdtId
protected final CRDTsTypes crdtType
public Operation(OperationType opType, String crdtId, CRDTsTypes crdtType)
opType - operation type as an OperationTypecrdtId - the CRDT identifiercrdtType - the CRDT type as a CRDTsTypespublic OperationType getOpType()
public String getCrdtId()
public CRDTsTypes getCrdtType()
public static void serialize(Operation op, io.netty.buffer.ByteBuf out) throws IOException
op - operation to be serializedout - ByteBuf where the operation is serializedIOException - if there is an error parsing the objectCopyright © 2024. All rights reserved.