All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.api.common.events.counter.CounterState Maven / Gradle / Ivy

There is a newer version: 15.1.3.Final
Show newest version
package org.infinispan.api.common.events.counter;

/**
 * The possible states for a counter value.
 *
 * @since 14.0
 */
public enum CounterState {
   /**
    * The counter value is valid.
    */
   VALID,

   /**
    * The counter value has reached its min threshold.
    */
   LOWER_BOUND_REACHED,

   /**
    * The counter value has reached its max threshold.
    */
   UPPER_BOUND_REACHED;

   private static final CounterState[] CACHED_VALUES = CounterState.values();

   public static CounterState valueOf(int index) {
      return CACHED_VALUES[index];
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy