public static enum Accountant.AllocationOutcome extends Enum<Accountant.AllocationOutcome>
Enum Constant and Description |
---|
FAILED_LOCAL
Allocation failed because the local allocator's limits were exceeded.
|
FAILED_PARENT
Allocation failed because a parent allocator's limits were exceeded.
|
FORCED_SUCESS
Allocation succeeded but only because the allocator was forced to move beyond a limit.
|
SUCCESS
Allocation succeeded.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isOk() |
static Accountant.AllocationOutcome |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Accountant.AllocationOutcome[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Accountant.AllocationOutcome SUCCESS
public static final Accountant.AllocationOutcome FORCED_SUCESS
public static final Accountant.AllocationOutcome FAILED_LOCAL
public static final Accountant.AllocationOutcome FAILED_PARENT
public static Accountant.AllocationOutcome[] values()
for (Accountant.AllocationOutcome c : Accountant.AllocationOutcome.values()) System.out.println(c);
public static Accountant.AllocationOutcome 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 nullpublic boolean isOk()
Copyright © 1970 The Apache Software Foundation. All rights reserved.