Package org.apache.pekko.cluster.ddata
Class Flag$
java.lang.Object
org.apache.pekko.cluster.ddata.Flag$
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply()apply(boolean enabled) Implements a boolean flag CRDT that is initialized tofalseand can be switched totrue.create()Java API:Flagthat is initialized tofalse.Disabled()Flagthat is initialized tofalse.empty()Flagthat is initialized tofalse.Enabled()Flagthat is initialized totrue.scala.Option<Object>
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Flag$
public Flag$()
-
-
Method Details
-
empty
Flagthat is initialized tofalse. -
Disabled
Flagthat is initialized tofalse. -
Enabled
Flagthat is initialized totrue. -
apply
-
create
Java API:Flagthat is initialized tofalse. -
apply
Implements a boolean flag CRDT that is initialized tofalseand can be switched totrue.truewins overfalsein merge.This class is immutable, i.e. "modifying" methods return a new instance.
-
unapply
-