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

org.infinispan.hotrod.configuration.NearCacheMode Maven / Gradle / Ivy

The newest version!
package org.infinispan.hotrod.configuration;

/**
 * Decides how client-side near caching should work.
 *
 * @since 14.0
 */
public enum NearCacheMode {

   // TODO: Add SELECTIVE (or similar) when ISPN-5545 implemented

   /**
    * Near caching is disabled.
    */
   DISABLED,

   /**
    * Near cache is invalidated, so when entries are updated or removed
    * server-side, invalidation messages will be sent to clients to remove
    * them from the near cache.
    */
   INVALIDATED;

   public boolean enabled() {
      return this != DISABLED;
   }

   public boolean invalidated() {
      return this == INVALIDATED;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy