org.daisy.pipeline.tts.scheduler.Schedulable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tts-common Show documentation
Show all versions of tts-common Show documentation
Common API for TTS functionality
The newest version!
package org.daisy.pipeline.tts.scheduler;
/**
* Schedulable action interface, used by Scheduler implementation.
*
* A schedulable action must be rescheduled if a RecoverableError is raised.
*/
public interface Schedulable {
/**
* Execute the action
*
* @throws InterruptedException if the action thread is interrupted
* @throws RecoverableError if the error is recoverable, so that the action can be rescheduled
* @throws FatalError if the action cannot be rescheduled
*/
public void launch() throws InterruptedException, RecoverableError, FatalError;
}