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, unlock
static final int WAIT
static final int NO_WAIT
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()
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-2014 Eike Stepper (Berlin, Germany) and others.