pt.unl.fct.di.novasys.babel.crdts.delta.causal.implementations

Class DeltaEWFlag

    • Field Detail

      • serializer

        public static pt.unl.fct.di.novasys.network.ISerializer<DeltaEWFlag> serializer
        A serializer that serializes the CRDT into (and from) a ByteBuf.
    • Constructor Detail

      • DeltaEWFlag

        public DeltaEWFlag(ReplicaID replicaID)
      • DeltaEWFlag

        public DeltaEWFlag(ReplicaID replicaID,
                           boolean initialValue)
      • DeltaEWFlag

        public DeltaEWFlag(CausalContext state,
                           boolean initialValue)
    • Method Detail

      • readFlag

        public boolean readFlag()
      • copy

        public GenericCRDT copy()
        Description copied from interface: GenericCRDT
        Creates a copy of the CRDT. Modifications on the copy don't modify the original.
        Returns:
        a copy of the CRDT
      • serialize

        public void serialize(io.netty.buffer.ByteBuf in)
                       throws IOException
        Description copied from interface: GenericCRDT
        Serializes the CRDT into a ByteBuf
        Parameters:
        in - ByteBuf to serialize the CRDT to
        Throws:
        IOException - if an error occurs while serializing

Copyright © 2024. All rights reserved.