public enum OwnershipLevel extends Enum<OwnershipLevel>
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.| Modifier and Type | Method and 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.
|
public static final OwnershipLevel NODE
public static final OwnershipLevel INSTANCE
public static OwnershipLevel[] values()
for (OwnershipLevel c : OwnershipLevel.values()) System.out.println(c);
public static OwnershipLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.