brooklyn.util.task.TaskScheduler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of brooklyn-core Show documentation
Show all versions of brooklyn-core Show documentation
Entity implementation classes, events, and other core elements
package brooklyn.util.task;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import brooklyn.management.Task;
/**
* The scheduler is an internal mechanism to decorate {@link Task}s.
*
* It can control how the tasks are scheduled for execution (e.g. single-threaded execution,
* prioritised, etc).
*/
public interface TaskScheduler {
public void injectExecutor(ExecutorService executor);
/**
* Called by {@link BasicExecutionManager} when preprocessor is associated with an
* execution manager.
*/
public Future submit(Callable c);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy