uk.co.codera.lang.concurrent.Task Maven / Gradle / Ivy
The newest version!
package uk.co.codera.lang.concurrent;
/**
*
* Tasks are the mechanism used to execute commands {@link Command} using the
* {@link PriorityTaskExecutor}.
*
*
* The TaskExecutor is responsible for determining if the task should be run
* based on it's type and what other tasks it has executed.
*
*
* @author andystewart
*/
@FunctionalInterface
public interface Task {
void execute();
}