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

org.infinispan.configuration.cache.Index Maven / Gradle / Ivy

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

/**
 * Used to configure indexing of entries in the cache for searching.
 *
 * @author Paul Ferraro
 */
public enum Index {
   NONE,
   /* Use PRIMARY_OWNER instead */
   @Deprecated LOCAL,
   ALL,
   PRIMARY_OWNER;

   public boolean isEnabled() {
      return this != NONE;
   }

   @Deprecated
   public boolean isLocalOnly() {
      return this == LOCAL;
   }

   public boolean isPrimaryOwner() {
      return this == PRIMARY_OWNER;
   }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy