io.cloudstate.javasupport.crdt.Flag Maven / Gradle / Ivy
package io.cloudstate.javasupport.crdt;
/**
* A flag CRDT.
*
* A flag is a boolean value that starts out as false
, and once set to true
*
, stays true
, it cannot be set back to false
.
*/
public interface Flag extends Crdt {
/**
* Whether this flag is enabled.
*
* @return True if the flag is enabled.
*/
boolean isEnabled();
/** Enable this flag. */
void enable();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy