|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ReactorListener
Receives callback during the Reactor.execute(Executor, ReactorListener).
The callback happens by using the threads of Executor, which means these callbacks
can occur concurrently. The callee is responsible for synchronization, if that's desired.
| Nested Class Summary | |
|---|---|
static class |
ReactorListener.Aggregator
Bundles multiple listeners into one. |
| Field Summary | |
|---|---|
static ReactorListener |
NOOP
|
| Method Summary | |
|---|---|
void |
onAttained(Milestone milestone)
Indicates that the following milestone was attained. |
void |
onTaskCompleted(Task t)
Notifies that the execution of the task is about to finish. |
void |
onTaskFailed(Task t,
java.lang.Throwable err,
boolean fatal)
Notifies that the execution of the task have failed with an exception. |
void |
onTaskStarted(Task t)
Notifies that the execution of the task is about to start. |
| Field Detail |
|---|
static final ReactorListener NOOP
| Method Detail |
|---|
void onTaskStarted(Task t)
void onTaskCompleted(Task t)
onTaskStarted(Task).
void onTaskFailed(Task t,
java.lang.Throwable err,
boolean fatal)
err - Either Error or Exception, indicating the cause of the failure.fatal - If true, this problem is fatal, and the reactor
is going to terminate. If false, the reactor will continue executing after this failure.void onAttained(Milestone milestone)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||