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

brooklyn.util.task.TaskScheduler Maven / Gradle / Ivy

There is a newer version: 0.7.0-M1
Show newest version
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