All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.harium.suneidesis.task.Task Maven / Gradle / Ivy

The newest version!
package com.harium.suneidesis.task;

public interface Task {

    /**
     * Method to check if requirements for this task is met
     * @return true if task can start
     */
    boolean canStart();

    /**
     * Method to check if the task is currently happening
     * @return if task is in progress
     */
    boolean isInProgress();

    /**
     * Method to check if the task finished to run
     * @return if task is finished
     */
    boolean isDone();

    /**
     * Method to actually execute the task
     * @return if task was executed
     */
    boolean start();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy