org.infinispan.hotrod.configuration.NearCacheMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-hotrod-jakarta Show documentation
Show all versions of infinispan-hotrod-jakarta Show documentation
Infinispan Hot Rod Client Jakarta EE
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;
}
}