public static enum RemoteLockResponse.Flag extends Enum<RemoteLockResponse.Flag>
Enum Constant and Description |
---|
FAIL
Attempt to acquire local lock failed
|
OK
Lock acquired on responding node
|
REJECT
Request rejected either because lock is held or local node is attempting to acquire lock.
|
Modifier and Type | Method and Description |
---|---|
static RemoteLockResponse.Flag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RemoteLockResponse.Flag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RemoteLockResponse.Flag OK
public static final RemoteLockResponse.Flag FAIL
public static final RemoteLockResponse.Flag REJECT
public static RemoteLockResponse.Flag[] values()
for (RemoteLockResponse.Flag c : RemoteLockResponse.Flag.values()) System.out.println(c);
public static RemoteLockResponse.Flag 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 © 2013 JBoss, a division of Red Hat, Inc.. All rights reserved.