Package com.nimbusds.common.infinispan
Class ZeroCacheModeDetector
- java.lang.Object
-
- com.nimbusds.common.infinispan.ZeroCacheModeDetector
-
@Deprecated public class ZeroCacheModeDetector extends Object
Deprecated.Detects if a cache is configured in "zero mode", meaning the cache mode is local and entries must be fetched directly from the underlying store(s). Infinispan doesn't permit setting a cache size to zero, therefore one (1) is used to imply a "zero mode".The "zero mode" is intended to facilitate deployments where Redis or some other database is intended to serve as in-memory cache / map.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static boolean
detect(org.infinispan.Cache... caches)
Deprecated.Checks if the specified caches are configured in "zero mode".
-
-
-
Method Detail
-
detect
public static boolean detect(org.infinispan.Cache... caches)
Deprecated.Checks if the specified caches are configured in "zero mode".- Parameters:
caches
- The caches to check.- Returns:
true
if the at least one of the caches is configured in "zero mode", elsefalse
.
-
-