Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- apply(C) - Method in class org.jboss.elemento.flow.ParallelTasks
- apply(C) - Method in class org.jboss.elemento.flow.RepeatTask
- apply(C) - Method in class org.jboss.elemento.flow.SequentialTasks
- apply(C) - Method in interface org.jboss.elemento.flow.Task
-
Executes the task.
C
- catch_(Promise.CatchOnRejectedCallbackFn<? extends V>) - Method in interface org.jboss.elemento.flow.Promisable
D
- DEFAULT_FAIL_FAST - Static variable in interface org.jboss.elemento.flow.Repeat
-
By default, the execution of task fails fast.
- DEFAULT_FAIL_FAST - Static variable in interface org.jboss.elemento.flow.Sequence
-
By default, the execution of tasks fail fast.
- DEFAULT_INTERVAL - Static variable in interface org.jboss.elemento.flow.Repeat
-
By default, the interval between the iterations is 1 second.
- DEFAULT_ITERATIONS - Static variable in interface org.jboss.elemento.flow.Repeat
-
By default, the number of iterations are infinite.
- DEFAULT_TIMEOUT - Static variable in interface org.jboss.elemento.flow.Repeat
-
By default, the timeout for the loop is 10 seconds.
- DEFAULT_TIMEOUT - Static variable in interface org.jboss.elemento.flow.Sequence
-
By default, no timeout is used.
E
- emptyStack() - Method in class org.jboss.elemento.flow.FlowContext
F
- failFast(boolean) - Method in interface org.jboss.elemento.flow.Repeat
-
Whether the execution of the task should fail fast or fail last.
- failFast(boolean) - Method in interface org.jboss.elemento.flow.Sequence
-
Whether the execution of tasks should fail fast or fail last.
- failure() - Method in class org.jboss.elemento.flow.FlowContext
- FAILURE - Enum constant in enum org.jboss.elemento.flow.FlowStatus
-
The execution failed.
- failureReason() - Method in class org.jboss.elemento.flow.FlowContext
- finally_(Promise.FinallyOnFinallyCallbackFn) - Method in interface org.jboss.elemento.flow.Promisable
- finish() - Method in interface org.jboss.elemento.flow.Progress
-
Indicates that the progress has been finished.
- finish(C) - Method in interface org.jboss.elemento.flow.FlowCallback
-
Called when the execution of the asynchronous tasks has been completed.
- Flow - Interface in org.jboss.elemento.flow
-
An interface to execute a list of asynchronous tasks in parallel or sequentially, or to execute a single task repeatedly as long as certain conditions are met.
- FlowCallback<C extends FlowContext> - Interface in org.jboss.elemento.flow
-
A callback for the outcome of the execution of asynchronous tasks.
- FlowContext - Class in org.jboss.elemento.flow
-
General purpose context to be used as a common data structure when executing a list of asynchronous tasks in parallel, in sequence or when executing a task repeatedly while a condition evaluates to
true. - FlowContext() - Constructor for class org.jboss.elemento.flow.FlowContext
-
Creates a new instance with a noop progress implementation.
- FlowContext(Progress) - Constructor for class org.jboss.elemento.flow.FlowContext
-
Creates a new instance using the given progress indicator.
- FlowStatus - Enum in org.jboss.elemento.flow
-
Enum for the execution status of a flow method.
G
- get(String) - Method in class org.jboss.elemento.flow.FlowContext
- get(String, T) - Method in class org.jboss.elemento.flow.FlowContext
I
- IN_PROGRESS - Enum constant in enum org.jboss.elemento.flow.FlowStatus
-
The execution is in progress.
- interval(long) - Method in interface org.jboss.elemento.flow.Repeat
-
The interval in milliseconds between the iterations.
- iterations(int) - Method in interface org.jboss.elemento.flow.Repeat
-
The maximal number of iterations of the loop.
K
- keys() - Method in class org.jboss.elemento.flow.FlowContext
N
- NOOP - Static variable in interface org.jboss.elemento.flow.Progress
-
Noop progress indicator that does nothing.
- NOT_STARTED - Enum constant in enum org.jboss.elemento.flow.FlowStatus
-
The execution has not yet started.
O
- org.jboss.elemento.flow - package org.jboss.elemento.flow
P
- parallel(C, List<Task<C>>) - Static method in interface org.jboss.elemento.flow.Flow
-
Executes a list of asynchronous tasks in parallel (all at once).
- ParallelTasks<C extends FlowContext> - Class in org.jboss.elemento.flow
-
A task implementation that executes a list of asynchronous tasks in parallel.
- ParallelTasks(C, List<Task<C>>) - Constructor for class org.jboss.elemento.flow.ParallelTasks
-
Creates a new task that executes the given list of asynchronous tasks in parallel using a new context.
- ParallelTasks(C, List<Task<C>>, boolean) - Constructor for class org.jboss.elemento.flow.ParallelTasks
-
Creates a new task that executes the given list of asynchronous tasks in parallel using a new context.
- ParallelTasks(C, List<Task<C>>, boolean, long) - Constructor for class org.jboss.elemento.flow.ParallelTasks
-
Creates a new task that executes the given list of asynchronous tasks in parallel using a new context.
- ParallelTasks(List<Task<C>>) - Constructor for class org.jboss.elemento.flow.ParallelTasks
-
Creates a new task that executes the given list of asynchronous tasks in parallel re-using an existing context.
- ParallelTasks(List<Task<C>>, boolean) - Constructor for class org.jboss.elemento.flow.ParallelTasks
-
Creates a new task that executes the given list of asynchronous tasks in parallel using a new context.
- ParallelTasks(List<Task<C>>, boolean, long) - Constructor for class org.jboss.elemento.flow.ParallelTasks
-
Creates a new task that executes the given list of asynchronous tasks in parallel using a new context.
- pop() - Method in class org.jboss.elemento.flow.FlowContext
-
Removes the object at the top of the stack and returns that object.
- pop(T) - Method in class org.jboss.elemento.flow.FlowContext
-
Removes the object at the top of the stack and returns that object or returns the default value, if the stack is empty.
- progress() - Method in class org.jboss.elemento.flow.FlowContext
-
Returns the progress indicator for the execution of the tasks.
- Progress - Interface in org.jboss.elemento.flow
-
Interface to reflect the progress when executing a list of asynchronous tasks in parallel, in sequence or repeatedly as long as certain conditions are met.
- Promisable<C extends FlowContext> - Interface in org.jboss.elemento.flow
-
An interface to use the promise when executing asynchronous tasks.
- promise() - Method in interface org.jboss.elemento.flow.Promisable
-
Returns the promise of the asynchronous execution.
- push(T) - Method in class org.jboss.elemento.flow.FlowContext
-
Pushes the value om top of the stack.
R
- reject(Object) - Method in class org.jboss.elemento.flow.FlowContext
- repeat(C, Task<C>) - Static method in interface org.jboss.elemento.flow.Flow
- Repeat<C extends FlowContext> - Interface in org.jboss.elemento.flow
-
An interface to control the repeated execution of an asynchronous task.
- RepeatTask<C extends FlowContext> - Class in org.jboss.elemento.flow
-
A task implementation that executes a task as long as certain conditions are met.
- RepeatTask(C, Task<C>, Predicate<C>, boolean, long, long) - Constructor for class org.jboss.elemento.flow.RepeatTask
- RepeatTask(C, Task<C>, Predicate<C>, boolean, long, long, int) - Constructor for class org.jboss.elemento.flow.RepeatTask
- RepeatTask(Task<C>, Predicate<C>, boolean, long, long) - Constructor for class org.jboss.elemento.flow.RepeatTask
- RepeatTask(Task<C>, Predicate<C>, boolean, long, long, int) - Constructor for class org.jboss.elemento.flow.RepeatTask
- reset() - Method in interface org.jboss.elemento.flow.Progress
-
Resets the progress indicator.
- reset(int) - Method in interface org.jboss.elemento.flow.Progress
-
Resets the progress indicator.
- reset(int, String) - Method in interface org.jboss.elemento.flow.Progress
-
Resets the progress indicator.
- resolve() - Method in class org.jboss.elemento.flow.FlowContext
-
Resolves this context successfully as a promise.
- resolve(String, T) - Method in class org.jboss.elemento.flow.FlowContext
-
Stores the value under the given key in the map and resolves this context successfully as a promise.
- resolve(T) - Method in class org.jboss.elemento.flow.FlowContext
-
Pushes the value on top of the stack and resolves this context successfully as a promise.
S
- Sequence<C extends FlowContext> - Interface in org.jboss.elemento.flow
- sequential(C, List<Task<C>>) - Static method in interface org.jboss.elemento.flow.Flow
-
Executes a list of asynchronous tasks in sequence (one after the other).
- SequentialTasks<C extends FlowContext> - Class in org.jboss.elemento.flow
-
A task implementation that executes a list of asynchronous tasks in order.
- SequentialTasks(C, List<Task<C>>) - Constructor for class org.jboss.elemento.flow.SequentialTasks
- SequentialTasks(C, List<Task<C>>, boolean) - Constructor for class org.jboss.elemento.flow.SequentialTasks
- SequentialTasks(C, List<Task<C>>, boolean, long) - Constructor for class org.jboss.elemento.flow.SequentialTasks
- SequentialTasks(List<Task<C>>) - Constructor for class org.jboss.elemento.flow.SequentialTasks
-
Creates a new task that executes the given list of asynchronous tasks in order re-using an existing context.
- SequentialTasks(List<Task<C>>, boolean) - Constructor for class org.jboss.elemento.flow.SequentialTasks
-
Creates a new task that executes the given list of asynchronous tasks in order re-using an existing context.
- SequentialTasks(List<Task<C>>, boolean, long) - Constructor for class org.jboss.elemento.flow.SequentialTasks
- set(String, T) - Method in class org.jboss.elemento.flow.FlowContext
-
Stores the value under the given key in the map.
- status() - Method in class org.jboss.elemento.flow.FlowContext
- subscribe(FlowCallback<C>) - Method in interface org.jboss.elemento.flow.Subscription
-
Subscribes to the outcome of the execution of asynchronous tasks.
- Subscription<C extends FlowContext> - Interface in org.jboss.elemento.flow
-
An interface to subscribe to the outcome of the execution of asynchronous tasks.
- SUCCESS - Enum constant in enum org.jboss.elemento.flow.FlowStatus
-
The execution was successful.
- successful() - Method in class org.jboss.elemento.flow.FlowContext
T
- Task<C extends FlowContext> - Interface in org.jboss.elemento.flow
-
Interface for the execution of an asynchronous task.
- then(IThenable.ThenOnFulfilledCallbackFn<? super C, ? extends V>) - Method in interface org.jboss.elemento.flow.Promisable
- then(IThenable.ThenOnFulfilledCallbackFn<? super C, ? extends V>, IThenable.ThenOnRejectedCallbackFn<? extends V>) - Method in interface org.jboss.elemento.flow.Promisable
- tick() - Method in interface org.jboss.elemento.flow.Progress
-
Indicates progress.
- tick(String) - Method in interface org.jboss.elemento.flow.Progress
-
Indicates progress using a description.
- timeout() - Method in class org.jboss.elemento.flow.FlowContext
- timeout(long) - Method in interface org.jboss.elemento.flow.Repeat
-
The timeout in milliseconds for the while loop.
- timeout(long) - Method in interface org.jboss.elemento.flow.Sequence
-
The timeout in milliseconds for the sequence.
- timeout(Object) - Static method in class org.jboss.elemento.flow.FlowContext
-
Method to check if the error in a catch callback is due to a timeout.
- TIMEOUT - Enum constant in enum org.jboss.elemento.flow.FlowStatus
-
The execution ran into a timeout.
- toString() - Method in class org.jboss.elemento.flow.FlowContext
V
- valueOf(String) - Static method in enum org.jboss.elemento.flow.FlowStatus
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.jboss.elemento.flow.FlowStatus
-
Returns an array containing the constants of this enum type, in the order they are declared.
W
- while_(Predicate<C>) - Method in interface org.jboss.elemento.flow.Repeat
-
The task is executed as long as the given predicate evaluates to
true.
All Classes and Interfaces|All Packages|Constant Field Values