public interface



Class Overview

The interface that is to be implemented by a specific task implementation.


Public Methods
abstract void cancel()
Signals the task to stop execution.
abstract TaskResult run()
Execute the task.

Public Methods

public abstract void cancel ()

Signals the task to stop execution. The task implementation should carry out any clean up actions that may be required and return from the run() method.

public abstract TaskResult run ()

Execute the task.

  • A TaskResult object indicating the status of the task and any additional context information that can be interpreted by the specific Task implementation.