Package org.eclipse.emf.cdo
Schnittstelle CDOLock
- Alle Superschnittstellen:
AutoCloseable,Lock
A read or write lock on an
object as returned by CDOObject.cdoReadLock() or
CDOObject.cdoWriteLock().- Seit:
- 2.0
- Autor:
- 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.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic interface -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final longstatic final intVeraltet.static final intVeraltet. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdefault voidclose()org.eclipse.net4j.util.concurrent.IRWLockManager.LockTypegetType()booleanisLocked()booleanReturnstrueif this lock is currently held by anotherview(i.e.voidlock(long millis) voidvoidbooleantryLock(long millis) booleanvoidunlock(boolean recursive) Von Schnittstelle geerbte Methoden java.util.concurrent.locks.Lock
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlock
-
Felddetails
-
NO_TIMEOUT
static final long NO_TIMEOUT- Seit:
- 4.15
- Siehe auch:
-
WAIT
Veraltet.- Siehe auch:
-
NO_WAIT
Veraltet.- Siehe auch:
-
-
Methodendetails
-
getObject
CDOObject getObject()- Seit:
- 4.8
-
getType
org.eclipse.net4j.util.concurrent.IRWLockManager.LockType getType()- Seit:
- 3.0
-
getOwners
Set<CDOLockOwner> getOwners()- Seit:
- 4.15
-
isLocked
boolean isLocked() -
isLockedByOthers
boolean isLockedByOthers()Returnstrueif this lock is currently held by anotherview(i.e. any view different from the requesting one),falseotherwise. -
lock
- Löst aus:
TimeoutException- Seit:
- 4.0
-
lock
- Löst aus:
TimeoutException- Seit:
- 4.16
-
lock
- Löst aus:
TimeoutException- Seit:
- 4.0
-
tryLock
- Löst aus:
InterruptedException- Seit:
- 4.0
-
tryLock
- Löst aus:
InterruptedException- Seit:
- 4.16
-
acquire
CDOLock.CDOAcquiredLock acquire(long time, TimeUnit unit, boolean recursive) throws TimeoutException - Löst aus:
TimeoutException- Seit:
- 4.16
-
unlock
void unlock(boolean recursive) - Seit:
- 4.16
-
close
default void close()- Angegeben von:
closein SchnittstelleAutoCloseable- Seit:
- 4.16
-