public enum ExecutionStrategy extends Enum<ExecutionStrategy>
Enum Constant and Description |
---|
JOIN
Similar to
PARALLEL : The JOIN ExecutionStrategy
causes state change requests to be applied on the contained components in
parallel, each state change request is applied in its own thread. |
PARALLEL
The
PARALLEL ExecutionStrategy causes state change
requests to be applied on the contained components in parallel, each
state change request is applied in its own thread. |
SEQUENTIAL
The
SEQUENTIAL ExecutionStrategy causes state change
requests to be applied on the contained components in sequential order
one after the other. |
Modifier and Type | Method and Description |
---|---|
static ExecutionStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExecutionStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExecutionStrategy SEQUENTIAL
SEQUENTIAL
ExecutionStrategy
causes state change
requests to be applied on the contained components in sequential order
one after the other. In case an exception occurs, then the exception of
the first erroneous component is forward (thrown). The invoking method
waits till all components have beenpublic static final ExecutionStrategy PARALLEL
PARALLEL
ExecutionStrategy
causes state change
requests to be applied on the contained components in parallel, each
state change request is applied in its own thread. In case an exception
occurs, then this exception is ignored. The invoking method exits
immediately after all threads for all applicable components have been
started.public static final ExecutionStrategy JOIN
PARALLEL
: The JOIN
ExecutionStrategy
causes state change requests to be applied on the contained components in
parallel, each state change request is applied in its own thread. In case
an exception occurs, then the exception of the first erroneous component
is forward (thrown). The invoking method waits till all threads have
executed (died).public static ExecutionStrategy[] values()
for (ExecutionStrategy c : ExecutionStrategy.values()) System.out.println(c);
public static ExecutionStrategy 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 © 2015. All rights reserved.