Flag

org.apache.pekko.cluster.ddata.Flag
See theFlag companion object
final case class Flag(enabled: Boolean) extends ReplicatedData, ReplicatedDataSerialization

Implements a boolean flag CRDT that is initialized to false and can be switched to true. true wins over false in merge.

This class is immutable, i.e. "modifying" methods return a new instance.

Attributes

Companion
object
Source
Flag.scala
Graph
Supertypes
trait Product
trait Equals
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Type members

Types

type T = Flag

The type of the concrete implementation, e.g. GSet[A]. To be specified by subclass.

The type of the concrete implementation, e.g. GSet[A]. To be specified by subclass.

Attributes

Source
Flag.scala

Value members

Concrete methods

override def merge(that: Flag): Flag

Monotonic merge function.

Monotonic merge function.

Attributes

Definition Classes
Source
Flag.scala
def switchOn: Flag

Attributes

Source
Flag.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product