Package org.infinispan.lock.api
Enum OwnershipLevel
- java.lang.Object
-
- java.lang.Enum<OwnershipLevel>
-
- org.infinispan.lock.api.OwnershipLevel
-
- All Implemented Interfaces:
Serializable
,Comparable<OwnershipLevel>
public enum OwnershipLevel extends Enum<OwnershipLevel>
Ownership level is a configuration parameter forClusteredLock
. The level of the ownership scopes the execution of the code once the lock is acquired. If the lock owner is theNODE
, this means that any thread on the node can release the lock.- Since:
- 9.2
- Author:
- Katia Aresti, karesti@redhat.com
- See Also:
- Infinispan documentation
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OwnershipLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static OwnershipLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NODE
public static final OwnershipLevel NODE
-
INSTANCE
public static final OwnershipLevel INSTANCE
-
-
Method Detail
-
values
public static OwnershipLevel[] 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 (OwnershipLevel c : OwnershipLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OwnershipLevel 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
-
-