sirius.kernel.timer.TimedTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sirius-kernel Show documentation
Show all versions of sirius-kernel Show documentation
Provides common core classes and the microkernel powering all Sirius applications
/*
* Made with all the love in the world
* by scireum in Remshalden, Germany
*
* Copyright by scireum GmbH
* http://www.scireum.de - [email protected]
*/
package sirius.kernel.timer;
/**
* Super-interface for timer intervals.
*
* See subclasses for defined semantics.
*/
public interface TimedTask {
/**
* Called every time the timer interval is fired.
*
* Note that only small computations can be done in this method. Computations which take longs must
* be executed in another executor as otherwise the timer will run out of schedule and start dropping tasks.
*
* @throws Exception in case anything goes wrong. Will be caught and handled using
* {@link sirius.kernel.health.Exceptions}
* @see sirius.kernel.async.Tasks#executor(String)
*/
void runTimer() throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy