add flag crdt constants (#24208)

* add flag crdt constants

* add scaladoc
This commit is contained in:
Nafer Sanabria 2018-01-09 04:39:06 -05:00 committed by Patrik Nordwall
parent 7c94bc7df4
commit 804dc4b6ba
6 changed files with 27 additions and 15 deletions

View file

@ -123,7 +123,7 @@ class DistributedDataDocSpec extends AkkaSpec(DistributedDataDocSpec.config) {
replicator ! Update(Set2Key, ORSet.empty[String], writeMajority)(_ + "hello")
val writeAll = WriteAll(timeout = 5.seconds)
replicator ! Update(ActiveFlagKey, Flag.empty, writeAll)(_.switchOn)
replicator ! Update(ActiveFlagKey, Flag.Disabled, writeAll)(_.switchOn)
//#update
probe.expectMsgType[UpdateResponse[_]] match {
@ -347,7 +347,7 @@ class DistributedDataDocSpec extends AkkaSpec(DistributedDataDocSpec.config) {
"demonstrate Flag" in {
def println(o: Any): Unit = ()
//#flag
val f0 = Flag.empty
val f0 = Flag.Disabled
val f1 = f0.switchOn
println(f1.enabled)
//#flag