public enum AllocationOutcome extends Enum<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_SUCCESS
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 AllocationOutcome |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AllocationOutcome[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AllocationOutcome SUCCESS
public static final AllocationOutcome FORCED_SUCCESS
public static final AllocationOutcome FAILED_LOCAL
public static final AllocationOutcome FAILED_PARENT
public static AllocationOutcome[] values()
for (AllocationOutcome c : AllocationOutcome.values()) System.out.println(c);
public static 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 © 2018 The Apache Software Foundation. All rights reserved.