|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.concurrent.LockAdapter
public final class LockAdapter
Converts a Confluence Lock to a {java.util.concurrent.locks.Lock} so it can be used in other contexts.
| Constructor Summary | |
|---|---|
LockAdapter(Lock delegate)
|
|
| Method Summary | |
|---|---|
void |
lock()
|
void |
lockInterruptibly()
This implementation does not support interruption, so InterruptedException is never thrown. |
Condition |
newCondition()
Not supported by this implementation. |
boolean |
tryLock()
|
boolean |
tryLock(long time,
TimeUnit unit)
This implementation does not support timeouts, so InterruptedException is never thrown. |
void |
unlock()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LockAdapter(Lock delegate)
| Method Detail |
|---|
public void lock()
lock in interface Lockpublic void lockInterruptibly()
lockInterruptibly in interface Lockpublic boolean tryLock()
tryLock in interface Lock
public boolean tryLock(long time,
TimeUnit unit)
tryLock in interface Lockpublic void unlock()
unlock in interface Lock
public Condition newCondition()
throws UnsupportedOperationException
newCondition in interface LockUnsupportedOperationException - always
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||