Package org.infinispan.lock.api
Enum OwnershipLevel
- All Implemented Interfaces:
Serializable
,Comparable<OwnershipLevel>
Ownership level is a configuration parameter for
ClusteredLock
. The level of the ownership scopes the
execution of the code once the lock is acquired. If the lock owner is the NODE
, this means that any thread
on the node can release the lock.- Since:
- 9.2
- Author:
- Katia Aresti, karesti@redhat.com
- See Also:
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic OwnershipLevel
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 Details
-
NODE
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-