Package org.apache.pekko.cluster.ddata
Class GSet$
- java.lang.Object
-
- org.apache.pekko.cluster.ddata.GSet$
-
- All Implemented Interfaces:
java.io.Serializable
public class GSet$ extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GSet$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GSet<java.lang.Object>
apply()
<A> GSet<A>
apply(scala.collection.immutable.Set<A> elements, scala.Option<GSet<A>> delta)
Implements a 'Add Set' CRDT, also called a 'G-Set'.<A> GSet<A>
create()
Java API<A> GSet<A>
empty()
<A> scala.Option<scala.collection.immutable.Set<A>>
unapply(GSet<A> x$0)
-
-
-
Field Detail
-
MODULE$
public static final GSet$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
empty
public <A> GSet<A> empty()
-
apply
public GSet<java.lang.Object> apply()
-
create
public <A> GSet<A> create()
Java API
-
apply
public <A> GSet<A> apply(scala.collection.immutable.Set<A> elements, scala.Option<GSet<A>> delta)
Implements a 'Add Set' CRDT, also called a 'G-Set'. You can't remove elements of a G-Set.It is described in the paper A comprehensive study of Convergent and Commutative Replicated Data Types.
A G-Set doesn't accumulate any garbage apart from the elements themselves.
This class is immutable, i.e. "modifying" methods return a new instance.
-
unapply
public <A> scala.Option<scala.collection.immutable.Set<A>> unapply(GSet<A> x$0)
-
-