public class ForkJoinTask<T,C extends Composable<T>> extends java.lang.Object implements Consumer<java.lang.Object>
submit().| Modifier and Type | Method and Description |
|---|---|
void |
accept(java.lang.Object arg)
Execute the logic of the action, accepting the given parameter.
|
<V> ForkJoinTask<T,C> |
add(Function<V,T> fn)
Add a task to the collection of tasks to be executed.
|
C |
compose()
Compose actions against the asynchronous results.
|
com.gs.collections.api.list.MutableList<Function<?,?>> |
getTasks()
Get the
MutableList of tasks that will be submitted when submit(Object) is called. |
void |
submit()
Submit all configured tasks, possibly in parallel (depending on the configuration of the
Executor in use), passing null as an input parameter. |
<V> void |
submit(V arg)
Submit all configured tasks, possibly in parallel (depending on the configuration of the
Executor in use), passing arg as an input parameter. |
public com.gs.collections.api.list.MutableList<Function<?,?>> getTasks()
MutableList of tasks that will be submitted when submit(Object) is called.public <V> ForkJoinTask<T,C> add(Function<V,T> fn)
V - type of resultfn - task to submitthispublic C compose()
public void submit()
Executor in use), passing null as an input parameter.public <V> void submit(V arg)
Executor in use), passing arg as an input parameter.V - type of input parameterarg - input parameter