public static enum Threading.Policy extends Enum<Threading.Policy>
SKIP
- no threading management will be performed.OUTSIDE_UITHREAD
- code should be invoked outside of the UI thread.OUTSIDE_UITHREAD_ASYNC
- code should be invoked on a background thread, always.INSIDE_UITHREAD_SYNC
- code should be invoked inside the UI thread using a synchronous call.INSIDE_UITHREAD_ASYNC
- code should be invoked inside the UI thread using an asynchronous call.Threading
Enum Constant and Description |
---|
INSIDE_UITHREAD_ASYNC
Inject runInsideUIAsync wrapper
|
INSIDE_UITHREAD_SYNC
Inject runInsideUISync wrapper
|
OUTSIDE_UITHREAD
Inject runOutsideUI wrapper
|
OUTSIDE_UITHREAD_ASYNC
Inject runOutsideUIAsync wrapper
|
SKIP
Skip threading injection
|
Modifier and Type | Method and Description |
---|---|
static Threading.Policy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Threading.Policy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Threading.Policy SKIP
public static final Threading.Policy OUTSIDE_UITHREAD
public static final Threading.Policy OUTSIDE_UITHREAD_ASYNC
public static final Threading.Policy INSIDE_UITHREAD_SYNC
public static final Threading.Policy INSIDE_UITHREAD_ASYNC
public static Threading.Policy[] values()
for (Threading.Policy c : Threading.Policy.values()) System.out.println(c);
public static Threading.Policy 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 null