public interface LockFactory
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LockFactory.Lock |
| Modifier and Type | Method and Description |
|---|---|
LockFactory.Lock |
lock() |
LockFactory.Lock |
lockInterruptibly() |
java.util.concurrent.locks.Condition |
newCondition() |
LockFactory.Lock |
tryLock() |
LockFactory.Lock |
tryLock(Duration timeout) |
LockFactory.Lock |
tryLock(long time,
java.util.concurrent.TimeUnit unit) |
@Nonnull LockFactory.Lock lock()
@Nonnull LockFactory.Lock lockInterruptibly() throws java.lang.InterruptedException
java.lang.InterruptedException@Nullable LockFactory.Lock tryLock()
null if it is not possible to acquire the lock. Causes could be that another thread currently already holds the lock.@Nullable LockFactory.Lock tryLock(@Nonnegative long time, @Nonnull java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
null if it is not possible to acquire the lock within the given timeout. Causes could be that another thread currently already holds the lock.java.lang.InterruptedException@Nullable LockFactory.Lock tryLock(@Nonnull Duration timeout) throws java.lang.InterruptedException
null if it is not possible to acquire the lock within the given timeout. Causes could be that another thread currently already holds the lock.java.lang.InterruptedException@Nonnull java.util.concurrent.locks.Condition newCondition()
Copyright © 2013 echocat. All Rights Reserved.