Class ConfigCacheLock
java.lang.Object
org.infinispan.globalstate.impl.ConfigCacheLock
A basic locking mechanism that uses the
InternalCacheNames.CONFIG_STATE_CACHE_NAME
to ensure only one operation can proceed.-
Constructor Details
-
ConfigCacheLock
-
-
Method Details
-
tryLock
Acquires the lock only if it is free at the time of invocation. Acquires the lock if it is available and returns aCompletableFuturewith the valuetrue. If the lock is not available aCompletableFuturewith the valuefalseis returned. -
unlock
Releases the lock if it is currently held. -
toString
-