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

org.daisy.pipeline.tts.scheduler.Scheduler Maven / Gradle / Ivy

There is a newer version: 7.2.0
Show newest version
package org.daisy.pipeline.tts.scheduler;

/**
 * Scheduler interface to launch schedulable actions.
 *
 * 

A schedulable action must be reschedule when a RecoverableError is raised.

* *

An example of implementation is provided in the ExponentialBackoffScheduler

* * @author Louis Caille @ braillenet * * @param the schedulable action class to handle */ public interface Scheduler { /** * Launch an action from the queue. * * @param scheduled the action to launch * @throws InterruptedException if the scheduler thread is interrupted * @throws FatalError if the action could not be executed or rescheduled after a RecoverableError */ public void launch(Action scheduled) throws InterruptedException, FatalError; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy