@PublicAPI public interface TaskTerminateNotification extends Serializable
Modifier and Type | Interface and Description |
---|---|
static class |
TaskTerminateNotification.TerminateTaskException |
Modifier and Type | Method and Description |
---|---|
void |
terminate(TaskId taskId,
TaskResult taskResult)
Invoke by a task when it is about to finish.
|
void terminate(TaskId taskId, TaskResult taskResult) throws TaskTerminateNotification.TerminateTaskException
taskId
- the identification of the executed task.TaskTerminateNotification.TerminateTaskException