public enum ExecutorStrategy extends Enum<ExecutorStrategy>
| Enum Constant and Description |
|---|
CONCURRENT_EXECUTION
并行
|
COVER_EARLY
覆盖
|
DISCARD_LATER
丢弃
|
SERIAL_EXECUTION
串行
|
| Modifier and Type | Method and Description |
|---|---|
String |
getTitle() |
static ExecutorStrategy |
match(String name,
ExecutorStrategy defaultItem) |
void |
setTitle(String title) |
static ExecutorStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExecutorStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExecutorStrategy SERIAL_EXECUTION
public static final ExecutorStrategy CONCURRENT_EXECUTION
public static final ExecutorStrategy DISCARD_LATER
public static final ExecutorStrategy COVER_EARLY
public static ExecutorStrategy[] values()
for (ExecutorStrategy c : ExecutorStrategy.values()) System.out.println(c);
public static ExecutorStrategy 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 static ExecutorStrategy match(String name, ExecutorStrategy defaultItem)
public String getTitle()
public void setTitle(String title)
Copyright © 2020. All rights reserved.