@Namespace(value="arrow") public static enum arrow.ShouldSchedule extends Enum<arrow.ShouldSchedule>
| Enum Constant and Description |
|---|
Always
Always schedule the callback as a new task
|
IfDifferentExecutor
Schedule a new task only if it would run on an executor other than
the specified executor.
|
IfUnfinished
Schedule a new task only if the future is not finished when the
callback is added
|
Never
Always run the callback synchronously (the default)
|
| Modifier and Type | Field and Description |
|---|---|
int |
value |
| Modifier and Type | Method and Description |
|---|---|
arrow.ShouldSchedule |
intern() |
String |
toString() |
static arrow.ShouldSchedule |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static arrow.ShouldSchedule[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final arrow.ShouldSchedule Never
public static final arrow.ShouldSchedule IfUnfinished
public static final arrow.ShouldSchedule Always
public static final arrow.ShouldSchedule IfDifferentExecutor
public static arrow.ShouldSchedule[] values()
for (arrow.ShouldSchedule c : arrow.ShouldSchedule.values()) System.out.println(c);
public static arrow.ShouldSchedule 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 arrow.ShouldSchedule intern()
public String toString()
toString in class Enum<arrow.ShouldSchedule>Copyright © 2022. All rights reserved.