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