public static enum AcquireResult.AcquireStatus extends Enum<AcquireResult.AcquireStatus>
Enum Constant and Description |
---|
FAILED
Denotes that a lock() request has not acquired the lock, either
because the lock is held by someone else or the lock acquire limit
is reached.
|
SUCCESSFUL
Denotes that a lock() call has successfully acquired the lock
|
WAIT_KEY_ADDED
Denotes that a wait key is added to the wait queue for a lock() call
|
Modifier and Type | Method and Description |
---|---|
static AcquireResult.AcquireStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AcquireResult.AcquireStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AcquireResult.AcquireStatus SUCCESSFUL
public static final AcquireResult.AcquireStatus WAIT_KEY_ADDED
public static final AcquireResult.AcquireStatus FAILED
public static AcquireResult.AcquireStatus[] values()
for (AcquireResult.AcquireStatus c : AcquireResult.AcquireStatus.values()) System.out.println(c);
public static AcquireResult.AcquireStatus 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 © 2019 Hazelcast, Inc.. All Rights Reserved.