public static enum AcquireResult.AcquireStatus extends Enum<AcquireResult.AcquireStatus>
Enum Constant and Description |
---|
FAILED
Denotes that an acquire() request has not acquired the requested
number of permits because there is no enough permits available
|
SUCCESSFUL
Denotes that an acquire() call has successfully acquired
the requested number of permits
|
WAIT_KEY_ADDED
Denotes that a wait key is added to the wait queue
for an acquire() 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 © 2020 Hazelcast, Inc.. All Rights Reserved.