Uses of Interface
org.apache.curator.framework.recipes.locks.InterProcessLock
Packages that use InterProcessLock
-
Uses of InterProcessLock in org.apache.curator.framework.recipes.locks
Classes in org.apache.curator.framework.recipes.locks that implement InterProcessLockModifier and TypeClassDescriptionclassA container that manages multiple locks as a single entity.classA re-entrant mutex that works across JVMs.static classstatic classclassA NON re-entrant mutex that works across JVMs.Methods in org.apache.curator.framework.recipes.locks with parameters of type InterProcessLockModifier and TypeMethodDescriptionprotected voidLocker.acquireLock(InterProcessLock lock) protected booleanLocker.acquireLock(InterProcessLock lock, long timeout, TimeUnit unit) Constructors in org.apache.curator.framework.recipes.locks with parameters of type InterProcessLockModifierConstructorDescriptionLocker(InterProcessLock lock) Locker(InterProcessLock lock, long timeout, TimeUnit unit) Constructor parameters in org.apache.curator.framework.recipes.locks with type arguments of type InterProcessLockModifierConstructorDescriptionCreates a multi lock of any type of inter process lock -
Uses of InterProcessLock in org.apache.curator.x.async
Methods in org.apache.curator.x.async with parameters of type InterProcessLockModifier and TypeMethodDescriptionstatic CompletionStage<Void> AsyncWrappers.lockAsync(InterProcessLock lock) Attempt to acquire the given lock asynchronously without timeout using theForkJoinPool.commonPool().static CompletionStage<Void> AsyncWrappers.lockAsync(InterProcessLock lock, long timeout, TimeUnit unit) Attempt to acquire the given lock asynchronously using the given timeout using theForkJoinPool.commonPool().static CompletionStage<Void> AsyncWrappers.lockAsync(InterProcessLock lock, long timeout, TimeUnit unit, Executor executor) Attempt to acquire the given lock asynchronously using the given timeout and executor.static CompletionStage<Void> AsyncWrappers.lockAsync(InterProcessLock lock, Executor executor) Attempt to acquire the given lock asynchronously using the given executor and without a timeout.static CompletionStage<Boolean> AsyncWrappers.lockAsyncIf(InterProcessLock lock, long timeout, TimeUnit unit) Attempt to acquire the given lock asynchronously using the given timeout using theForkJoinPool.commonPool().static CompletionStage<Boolean> AsyncWrappers.lockAsyncIf(InterProcessLock lock, long timeout, TimeUnit unit, Executor executor) Attempt to acquire the given lock asynchronously using the given timeout and executor.static voidAsyncWrappers.release(InterProcessLock lock) Release the lock and wrap any exception inRuntimeExceptionstatic voidAsyncWrappers.release(InterProcessLock lock, boolean ignoreNoLockExceptions) Release the lock and wrap any exception inRuntimeException