Class GSet$

java.lang.Object
org.apache.pekko.cluster.ddata.GSet$
All Implemented Interfaces:
Serializable

public class GSet$ extends Object implements Serializable
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final GSet$
    Static reference to the singleton instance of this Scala object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    <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>
    Java API
    <A> GSet<A>
     
    <A> scala.Option<scala.collection.immutable.Set<A>>
    unapply(GSet<A> x$0)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MODULE$

      public static final GSet$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • GSet$

      public GSet$()
  • Method Details

    • empty

      public <A> GSet<A> empty()
    • apply

      public GSet<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)