|
||||||||||
| 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. |
java.util.concurrent.locks.Condition |
newCondition()
Not supported by this implementation. |
boolean |
tryLock()
|
boolean |
tryLock(long time,
java.util.concurrent.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 java.util.concurrent.locks.Lockpublic void lockInterruptibly()
lockInterruptibly in interface java.util.concurrent.locks.Lockpublic boolean tryLock()
tryLock in interface java.util.concurrent.locks.Lock
public boolean tryLock(long time,
java.util.concurrent.TimeUnit unit)
tryLock in interface java.util.concurrent.locks.Lockpublic void unlock()
unlock in interface java.util.concurrent.locks.Lock
public java.util.concurrent.locks.Condition newCondition()
throws java.lang.UnsupportedOperationException
newCondition in interface java.util.concurrent.locks.Lockjava.lang.UnsupportedOperationException - always
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||