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