4 * Classes listening to the pollable task events must implement
5 * {@link PollableTaskListenerI}. They can be added to the
6 * {@link PollingTaskExecutor} to respond to the task execution events.
11 public interface PollableTaskListenerI
14 * Called when a new task is submitted for execution after its
15 * {@link PollableTask#start} method was called successfully.
20 public void submitted(PollableTaskI task);
23 * Called when a new task failed to start and raised an uncaught exception.
30 public void submissionFailed(PollableTaskI task, Exception e);
33 * Called when polling resulted in an uncaught exception.
40 public void pollFailed(PollableTaskI task, Exception e);
43 * Called when a task is cancelled.
48 public void cancelled(PollableTaskI task);
51 * Called when the task finished execution either successfully or not.
56 public void done(PollableTaskI task);