com.github.githubpeon.peon.PeonTaskState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of peon Show documentation
Show all versions of peon Show documentation
A peon that goes away in the background to perform any menial labour tasks you care to throw at it.
The newest version!
package com.github.githubpeon.peon;
/**
* The possible states of a peon task.
*/
public enum PeonTaskState {
/**
* The task has been created and is ready to start executing.
*/
PENDING,
/**
* The task is currently executing.
*/
ACTIVE,
/**
* The task has been cancelled by user interaction.
*/
CANCELLED,
/**
* The task has failed to produce the desired result. A task in this state can be expected to have
* an error with a message and details that can be presented to the user to show why the task failed.
*/
FAILED,
/**
* An unhandled exception was thrown when the task was executing.
*/
EXCEPTION,
/**
* The task finished successfully. If the task produces a result, the result should be available from
* a task in this state.
*/
FINISHED;
}