Package org.eclipse.emf.cdo
Interface CDOLock
- 
- All Superinterfaces:
- java.util.concurrent.locks.Lock
 
 public interface CDOLock extends java.util.concurrent.locks.LockA read or write lock on anobjectas returned byCDOObject.cdoReadLock()orCDOObject.cdoWriteLock().- Since:
- 2.0
- Author:
- Simon McDuff
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description CDOObjectgetObject()org.eclipse.net4j.util.concurrent.IRWLockManager.LockTypegetType()booleanisLocked()booleanisLockedByOthers()Returnstrueif this lock is currently held by anotherview(i.e.voidlock(long millis)voidlock(long time, java.util.concurrent.TimeUnit unit)booleantryLock(long millis)
 
- 
- 
- 
Field Detail- 
WAITstatic final int WAIT - See Also:
- Constant Field Values
 
 - 
NO_WAITstatic final int NO_WAIT - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getObjectCDOObject getObject() - Since:
- 4.8
 
 - 
getTypeorg.eclipse.net4j.util.concurrent.IRWLockManager.LockType getType() - Since:
- 3.0
 
 - 
lockvoid lock(long time, java.util.concurrent.TimeUnit unit) throws java.util.concurrent.TimeoutException- Throws:
- java.util.concurrent.TimeoutException
- Since:
- 4.0
 
 - 
lockvoid lock(long millis) throws java.util.concurrent.TimeoutException - Throws:
- java.util.concurrent.TimeoutException
- Since:
- 4.0
 
 - 
tryLockboolean tryLock(long millis) throws java.lang.InterruptedException- Throws:
- java.lang.InterruptedException
- Since:
- 4.0
 
 - 
isLockedboolean isLocked() 
 - 
isLockedByOthersboolean isLockedByOthers() Returnstrueif this lock is currently held by anotherview(i.e. any view different from the requesting one),falseotherwise.
 
- 
 
-