public interface GenericCRDT
| Modifier and Type | Method and Description |
|---|---|
GenericCRDT |
copy()
Creates a copy of the CRDT.
|
static GenericCRDT |
deserializeDataType(CRDTsTypes crdtType,
io.netty.buffer.ByteBuf in)
A static method that deserializes a GenericCRDT by receiving its concrete
CRDT type as an argument.
|
CRDTsTypes |
getType()
Gets the CRDT type
|
void |
serialize(io.netty.buffer.ByteBuf in)
Serializes the CRDT into a ByteBuf
|
CRDTsTypes getType()
GenericCRDT copy()
void serialize(io.netty.buffer.ByteBuf in)
throws IOException
in - ByteBuf to serialize the CRDT toIOException - if an error occurs while serializingstatic GenericCRDT deserializeDataType(CRDTsTypes crdtType, io.netty.buffer.ByteBuf in) throws IOException
crdtType - data type of the objectin - ByteBuf where the object is storedIOException - if there is an error parsing the objectCopyright © 2024. All rights reserved.