
public interface CDOLock extends Lock
object as returned by CDOObject.cdoReadLock() or
CDOObject.cdoWriteLock().| Modifier and Type | Method and Description |
|---|---|
IRWLockManager.LockType |
getType() |
boolean |
isLocked()
|
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) |
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlockstatic final int WAIT
static final int NO_WAIT
IRWLockManager.LockType getType()
void lock(long time,
TimeUnit unit)
throws TimeoutException
TimeoutExceptionvoid lock(long millis)
throws TimeoutException
TimeoutExceptionboolean tryLock(long millis)
throws InterruptedException
InterruptedExceptionboolean isLocked()
boolean isLockedByOthers()
true if this lock is currently held by another view (i.e. any view different
from the requesting one), false otherwise.Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.