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

org.infinispan.partitionhandling.AvailabilityMode Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.partitionhandling;

/**
* @author Mircea Markus
* @author Dan Berindei
* @since 7.0
*/
public enum AvailabilityMode {
   /** Regular operation mode */
   AVAILABLE,
   /** Data can not be safely accessed because of a network split or successive nodes leaving. */
   DEGRADED_MODE,
   /** @deprecated Use {@link #DEGRADED_MODE} instead. */
   UNAVAILABLE,
   ;

   public AvailabilityMode min(AvailabilityMode other) {
      if (this == UNAVAILABLE || other == UNAVAILABLE)
         return UNAVAILABLE;
      if (this == DEGRADED_MODE || other == DEGRADED_MODE)
         return DEGRADED_MODE;
      return AVAILABLE;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy