Constructor and Description |
---|
TaskScopeAdapter()
Creates a new instance without a descriptive name.
|
TaskScopeAdapter(String name)
Creates a new instance with the given descriptive name.
|
Modifier and Type | Method and Description |
---|---|
void |
taskCompleted(R result)
Receive notification about a task that has been completed without exceptions.
|
void |
taskFailed(Task<R> task,
Throwable reason)
Receive notification about a task that has failed.
|
String |
toString() |
public TaskScopeAdapter()
public TaskScopeAdapter(String name)
name
- describes this implementationpublic void taskCompleted(R result)
TaskScope
taskCompleted
in interface TaskScope<R>
result
- the task's resultpublic void taskFailed(Task<R> task, Throwable reason)
TaskScope
taskFailed
in interface TaskScope<R>
task
- the taskreason
- the Throwable that caused the failureCopyright © 2024 levigo holding gmbh. All rights reserved.