|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.concurrent.locks.ReentrantReadWriteLock.ReadLock
org.gcube.common.core.state.GCUBEReadWriteLock.GCUBEReadLock
public static class GCUBEReadWriteLock.GCUBEReadLock
An extension of ReentrantReadWriteLock.WriteLock that supports
preemptive requests and acquisitions.
| Method Summary | |
|---|---|
void |
lock()
Deprecated. use lockInterruptibly() instead. |
void |
lockInterruptibly()
|
boolean |
tryLock()
Extends the semantics of Lock.tryLock() to cater for lock preemption. |
| Methods inherited from class java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock |
|---|
newCondition, toString, tryLock, unlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public void lock()
throws org.gcube.common.core.state.GCUBEReadWriteLock.LockPreemptedException
lockInterruptibly() instead.
Lock.lock() to cater for lock preemption.
lock in interface Locklock in class ReentrantReadWriteLock.ReadLockLockPreemptedException - if the lock is preempted.
org.gcube.common.core.state.GCUBEReadWriteLock.LockPreemptedExceptionpublic boolean tryLock()
Lock.tryLock() to cater for lock preemption.
tryLock in interface LocktryLock in class ReentrantReadWriteLock.ReadLockfalse if the lock is already held by another thread or has been preempted.
public void lockInterruptibly()
throws InterruptedException
lockInterruptibly in interface LocklockInterruptibly in class ReentrantReadWriteLock.ReadLockInterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||