public interface

Task

org.apache.helix.task.Task
Known Indirect Subclasses

Class Overview

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

Summary

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.

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