Package org.apache.pekko.cluster.ddata
Class AbstractReplicatedData<A extends AbstractReplicatedData<A>>
- java.lang.Object
-
- org.apache.pekko.cluster.ddata.AbstractReplicatedData<A>
-
- All Implemented Interfaces:
ReplicatedData
- Direct Known Subclasses:
AbstractDeltaReplicatedData
public abstract class AbstractReplicatedData<A extends AbstractReplicatedData<A>> extends java.lang.Object implements ReplicatedData
Java API: Interface for implementing aReplicatedData
in Java.The type parameter
A
is a self-recursive type to be defined by the concrete implementation. E.g.class TwoPhaseSet extends AbstractReplicatedData<TwoPhaseSet>
-
-
Constructor Summary
Constructors Constructor Description AbstractReplicatedData()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ReplicatedData
merge(ReplicatedData that)
Delegates tomergeData(A)
, which must be implemented by subclass.abstract A
mergeData(A that)
Java API: Monotonic merge function.
-
-
-
Method Detail
-
merge
public final ReplicatedData merge(ReplicatedData that)
Delegates tomergeData(A)
, which must be implemented by subclass.- Specified by:
merge
in interfaceReplicatedData
-
-