public static enum PromiseFactory.Option extends Enum<PromiseFactory.Option>
The default options are no options unless the boolean system property
org.osgi.util.promise.allowCurrentThread
is set to false
.
When this is the case, the option CALLBACKS_EXECUTOR_THREAD
is a default option.
Enum Constant and Description |
---|
CALLBACKS_EXECUTOR_THREAD
Run callbacks on an executor thread.
|
Modifier and Type | Method and Description |
---|---|
static PromiseFactory.Option |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PromiseFactory.Option[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PromiseFactory.Option CALLBACKS_EXECUTOR_THREAD
public static PromiseFactory.Option[] values()
for (PromiseFactory.Option c : PromiseFactory.Option.values()) System.out.println(c);
public static PromiseFactory.Option 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 nullCopyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0