public interface LockGroup
extends org.mule.runtime.api.lifecycle.Disposable
LockFactory in order to release memory of no longer referenced locks.| Modifier and Type | Method and Description |
|---|---|
void |
lock(String lockId) |
void |
lockInterruptibly(String lockId) |
boolean |
tryLock(String lockId) |
boolean |
tryLock(String lockId,
long timeout,
TimeUnit timeUnit)
Tries to acquire the lock for a certain amount of time
|
void |
unlock(String lockId) |
void lock(String lockId)
void unlock(String lockId)
boolean tryLock(String lockId, long timeout, TimeUnit timeUnit) throws InterruptedException
timeout - the time in timeUnit to wait until the lock is acquiredtimeUnit - the time unit of timeoutInterruptedException - if thread was interrupted during the lock acquisitionboolean tryLock(String lockId)
void lockInterruptibly(String lockId) throws InterruptedException
InterruptedExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.