Package akka.cluster.ddata
Class Flag
- java.lang.Object
-
- akka.cluster.ddata.Flag
-
- All Implemented Interfaces:
ReplicatedData
,ReplicatedDataSerialization
,java.io.Serializable
,scala.Equals
,scala.Product
public final class Flag extends java.lang.Object implements ReplicatedData, ReplicatedDataSerialization, scala.Product, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Flag(boolean enabled)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Flag
apply()
static Flag
apply(boolean enabled)
Implements a boolean flag CRDT that is initialized tofalse
and can be switched totrue
.boolean
canEqual(java.lang.Object x$1)
Flag
copy(boolean enabled)
boolean
copy$default$1()
static Flag
create()
Java API:Flag
that is initialized tofalse
.static Flag
Disabled()
Flag
that is initialized tofalse
.static Flag
empty()
Flag
that is initialized tofalse
.boolean
enabled()
static Flag
Enabled()
Flag
that is initialized totrue
.boolean
equals(java.lang.Object x$1)
int
hashCode()
Flag
merge(Flag that)
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
Flag
switchOn()
java.lang.String
toString()
static scala.Option<java.lang.Object>
unapply(Flag x$0)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface akka.cluster.ddata.ReplicatedData
merge
-
-
-
-
Method Detail
-
empty
public static Flag empty()
Flag
that is initialized tofalse
.
-
Disabled
public static Flag Disabled()
Flag
that is initialized tofalse
.
-
Enabled
public static Flag Enabled()
Flag
that is initialized totrue
.
-
apply
public static Flag apply()
-
create
public static Flag create()
Java API:Flag
that is initialized tofalse
.
-
apply
public static Flag apply(boolean enabled)
Implements a boolean flag CRDT that is initialized tofalse
and can be switched totrue
.true
wins overfalse
in merge.This class is immutable, i.e. "modifying" methods return a new instance.
-
unapply
public static scala.Option<java.lang.Object> unapply(Flag x$0)
-
enabled
public boolean enabled()
-
switchOn
public Flag switchOn()
-
copy
public Flag copy(boolean enabled)
-
copy$default$1
public boolean copy$default$1()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-