Package org.eclipse.emf.cdo.common.lock
Enum Class IDurableLockingManager.LockGrade
java.lang.Object
java.lang.Enum<IDurableLockingManager.LockGrade>
org.eclipse.emf.cdo.common.lock.IDurableLockingManager.LockGrade
- All Implemented Interfaces:
Serializable
,Comparable<IDurableLockingManager.LockGrade>
,Constable
- Enclosing interface:
- IDurableLockingManager
Enumerates the possible combinations of read and write locks on a single CDO object.
- Author:
- Eike Stepper
- No Extend
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
forEachLockType
(Consumer<org.eclipse.net4j.util.concurrent.IRWLockManager.LockType> consumer) get
(boolean read, boolean write) Deprecated.get
(boolean read, boolean write, boolean option) get
(int value) get
(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type) getUpdated
(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, boolean on) int
getValue()
boolean
isOption()
boolean
isRead()
boolean
isWrite()
Returns the enum constant of this class with the specified name.static IDurableLockingManager.LockGrade[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
-
READ
-
WRITE
-
READ_WRITE
-
OPTION
- Since:
- 4.1
-
READ_OPTION
- Since:
- 4.1
-
WRITE_OPTION
- Since:
- 4.1
-
READ_WRITE_OPTION
- Since:
- 4.1
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue() -
isRead
public boolean isRead() -
isWrite
public boolean isWrite() -
isOption
public boolean isOption()- Since:
- 4.1
-
forEachLockType
public void forEachLockType(Consumer<org.eclipse.net4j.util.concurrent.IRWLockManager.LockType> consumer) - Since:
- 4.15
-
getUpdated
public IDurableLockingManager.LockGrade getUpdated(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type, boolean on) -
get
public static IDurableLockingManager.LockGrade get(org.eclipse.net4j.util.concurrent.IRWLockManager.LockType type) -
get
Deprecated. -
get
- Since:
- 4.1
-
get
-
get(boolean, boolean, boolean)