Package org.infinispan.lock.impl.entries
Enum ClusteredLockState
- java.lang.Object
-
- java.lang.Enum<ClusteredLockState>
-
- org.infinispan.lock.impl.entries.ClusteredLockState
-
- All Implemented Interfaces:
Serializable
,Comparable<ClusteredLockState>
public enum ClusteredLockState extends Enum<ClusteredLockState>
Enum that represents the state of the lock. Currently, two states are supported :ACQUIRED
andRELEASED
- Since:
- 9.2
- Author:
- Katia Aresti, karesti@redhat.com
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClusteredLockState
valueOf(int index)
Returns the enum constant of this type with the specified name.static ClusteredLockState
valueOf(String name)
Returns the enum constant of this type with the specified name.static ClusteredLockState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACQUIRED
public static final ClusteredLockState ACQUIRED
-
RELEASED
public static final ClusteredLockState RELEASED
-
-
Method Detail
-
values
public static ClusteredLockState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClusteredLockState c : ClusteredLockState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClusteredLockState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
public static ClusteredLockState valueOf(int index)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
index
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-