public enum ThreadMode extends java.lang.Enum<ThreadMode>
Enum Constant and Description |
---|
ASYNC
将事件执行在一个子线程中
|
MAIN
将事件执行在UI线程
|
POST
在发布线程执行
|
Modifier and Type | Method and Description |
---|---|
static ThreadMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ThreadMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadMode MAIN
public static final ThreadMode POST
public static final ThreadMode ASYNC
public static ThreadMode[] values()
for (ThreadMode c : ThreadMode.values()) System.out.println(c);
public static ThreadMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null