public static enum LockUtil.LockOwnership extends Enum<LockUtil.LockOwnership>
Enum Constant and Description |
---|
BACKUP
this node is the backup lock owner.
|
NO_OWNER
This node is not an owner.
|
PRIMARY
This node is the primary lock owner.
|
Modifier and Type | Method and Description |
---|---|
static LockUtil.LockOwnership |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LockUtil.LockOwnership[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LockUtil.LockOwnership NO_OWNER
public static final LockUtil.LockOwnership PRIMARY
public static final LockUtil.LockOwnership BACKUP
public static LockUtil.LockOwnership[] values()
for (LockUtil.LockOwnership c : LockUtil.LockOwnership.values()) System.out.println(c);
public static LockUtil.LockOwnership 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 © 2017 JBoss, a division of Red Hat. All rights reserved.