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

org.infinispan.distribution.DataLocality Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.distribution;

/**
 * Used to determine whether a key is mapped to a local node.  Uncertainty indicates a rehash is in progress and the
 * locality of key in question may be in flux.
 *
 * @author Manik Surtani
 * @author Mircea Markus
 * @since 4.2.1
 * @deprecated Since 11.0. Will be removed in 14.0, no longer used.
 */
public enum DataLocality {
   LOCAL(true,false),

   NOT_LOCAL(false,false),

   LOCAL_UNCERTAIN(true,true),

   NOT_LOCAL_UNCERTAIN(false,true);

   private final boolean local, uncertain;

   DataLocality(boolean local, boolean uncertain) {
      this.local = local;
      this.uncertain = uncertain;
   }

   public boolean isLocal() {
      return local;
   }

   public boolean isUncertain() {
      return uncertain;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy