org.infinispan.counter.configuration.Reliability Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-clustered-counter Show documentation
Show all versions of infinispan-clustered-counter Show documentation
Infinispan Clustered Counter module
package org.infinispan.counter.configuration;
/**
* Reliability mode available for {@link org.infinispan.counter.api.CounterManager}.
*
* @author Pedro Ruivo
* @since 9.0
*/
public enum Reliability {
/**
* If the cluster splits in multiple partition, all of them are allowed to continue read/update the counter.
*
* When the cluster merges back, one partition's updates are kept the others partition's updates are lost.
*/
AVAILABLE,
/**
* If the cluster splits in multiple partitions, the majority partition is allowed to read/update the counter if the
* counter is available on that partition.
*
* The minority partition is allowed to read if the counter is available on that partition.
*
* When the cluster merges back, the partitions conciliates the counter's value.
*/
CONSISTENT
}