Package org.infinispan.globalstate.impl
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 aCompletableFuture
with the valuetrue
. If the lock is not available aCompletableFuture
with the valuefalse
is returned. -
unlock
Releases the lock if it is currently held. -
toString
-