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 long
static final int
Veraltet.static final int
Veraltet. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdefault void
close()
org.eclipse.net4j.util.concurrent.IRWLockManager.LockType
getType()
boolean
isLocked()
boolean
Returnstrue
if this lock is currently held by anotherview
(i.e.void
lock
(long millis) void
void
boolean
tryLock
(long millis) boolean
void
unlock
(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()Returnstrue
if this lock is currently held by anotherview
(i.e. any view different from the requesting one),false
otherwise. -
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:
close
in SchnittstelleAutoCloseable
- Seit:
- 4.16
-