Klasse RWOLockManager.LockState<OBJECT,CONTEXT>
java.lang.Object
org.eclipse.net4j.util.concurrent.RWOLockManager.LockState<OBJECT,CONTEXT>
- Umschließende Klasse:
RWOLockManager<OBJECT,
CONTEXT>
Represents a combination of locks for one OBJECT. The different lock types are represented by the values of the
enum
IRWLockManager.LockType
The locking semantics established by this class are as follows:
- A read lock prevents a write lock by another, but allows read locks by others and allows a write option by another, and is therefore non-exclusive.
- A write lock prevents read locks by others, a write lock by another, and a write option by another, and is therefore exclusive.
- A write option prevents write locks by others and a write option by another, but allows read locks by others, and is therefore exclusive.
- Seit:
- 3.2
- Autor:
- Caspar De Groot
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
int
getLockCount
(IRWLockManager.LockType type, CONTEXT context) int
hashCode()
boolean
boolean
hasLock
(IRWLockManager.LockType type, CONTEXT context, boolean byOthers) toString()
-
Methodendetails