|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CDOLock
A read or write lock on an object
as returned by CDOObject.cdoReadLock()
or
CDOObject.cdoWriteLock()
.
Field Summary | |
---|---|
static int |
NO_WAIT
|
static int |
WAIT
|
Method Summary | |
---|---|
IRWLockManager.LockType |
getType()
TODO Simon: JavaDoc |
boolean |
isLocked()
Returns true if this lock is currently held by the requesting view , false
otherwise. |
boolean |
isLockedByOthers()
Returns true if this lock is currently held by another view (i.e. any view different
from the requesting one), false otherwise. |
void |
lock(long millis)
|
void |
lock(long time,
TimeUnit unit)
|
boolean |
tryLock(long millis)
|
Methods inherited from interface java.util.concurrent.locks.Lock |
---|
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock |
Field Detail |
---|
static final int WAIT
static final int NO_WAIT
Method Detail |
---|
IRWLockManager.LockType getType()
void lock(long time, TimeUnit unit) throws TimeoutException
TimeoutException
void lock(long millis) throws TimeoutException
TimeoutException
boolean tryLock(long millis) throws InterruptedException
InterruptedException
boolean isLocked()
true
if this lock is currently held by the requesting view
, false
otherwise.
boolean isLockedByOthers()
true
if this lock is currently held by another view
(i.e. any view different
from the requesting one), false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |