urn:infinispan:config:counters:12.1

counters

NameTypeDefaultDescription
num-ownerspositiveInteger2 Sets the number of copies of the counter's value available in the cluster.
reliability
AVAILABLE All partitions are allowed to read and update the counters.
CONSISTENT Only the majority partition is allowed to read and update the counter if it is available on that partition. The remaining partitions are only allowed to read if the counter is available on that partition.
AVAILABLE Sets the reliability mode for the partitions when the cluster splits.

strong-counter

Configures a strong consistent counter. Its state is well know before and after an update.

NameTypeDefaultDescription
lower-boundint Sets the counter's lower bound (inclusive). It makes the strong consistent counter bounded.
upper-boundint Sets the counter's upper bound (inclusive). it makes the strong consistent counter bounded.
NameTypeDefaultDescription
nameID Sets the counter's name. It must be unique.
initial-valueint0 Sets the counter's initial value.
storage
VOLATILE The counter value is lost when the cluster is restarted/stopped.
PERSISTENT The counter value is stored persistently and survives a cluster restart/stop.
VOLATILE Sets the counter's storage mode.

weak-counter

Configures a weak consistent counter. Its state before and after an update is not knows and it is calculated when the counter is read.

NameTypeDefaultDescription
concurrency-levelpositiveInteger16 Sets the weak consistent counter's concurrency level. The concurrency level configures the number of concurrent updates allowed in the counter.
NameTypeDefaultDescription
nameID Sets the counter's name. It must be unique.
initial-valueint0 Sets the counter's initial value.
storage
VOLATILE The counter value is lost when the cluster is restarted/stopped.
PERSISTENT The counter value is stored persistently and survives a cluster restart/stop.
VOLATILE Sets the counter's storage mode.
Expand/Collapse All