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

sirius.kernel.timer.TimedTask Maven / Gradle / Ivy

Go to download

Provides common core classes and the microkernel powering all Sirius applications

There is a newer version: 12.9.1
Show newest version
/*
 * 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