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

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

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.client.hotrod.configuration;

/**
 * Decides how client-side near caching should work.
 *
 * @since 7.1
 */
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