public interface TaskBuilder
Modifier and Type | Method and Description |
---|---|
Task |
build()
Build the task.
|
TaskBuilder |
onError(WscFuture<?> future)
The task is executed only if all of the WscFuture object results in an error.
|
TaskBuilder |
onError(WscFuture<?> future,
String name)
The task will be executed only if all of the WscFuture object results in an error.
|
TaskBuilder |
onSuccess(WscFuture<?> future)
The task is executed if all the WscFuture objects are ready.
|
TaskBuilder |
onSuccess(WscFuture<?> future,
String name)
The task is executed if all the WscFuture objects are ready.
|
TaskBuilder |
withArg(String name,
Object value)
Argument map made available for the callback groovy function.
|
TaskBuilder withArg(String name, Object value)
name
- name of the argumentvalue
- value of the argumentTaskBuilder onSuccess(WscFuture<?> future)
future
- Future objectTaskBuilder onSuccess(WscFuture<?> future, String name)
future
- Future objectname
- name of the argumentTaskBuilder onError(WscFuture<?> future)
future
- Future objectTaskBuilder onError(WscFuture<?> future, String name)
future
- Future objectname
- Name of argument that expose the future.Task build()