
delight.concurrency.factories.TimerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of delight-concurrency Show documentation
Show all versions of delight-concurrency Show documentation
An abstract and lightweight definition of concurrency fundamentals.
The newest version!
package delight.concurrency.factories;
import delight.concurrency.wrappers.SimpleTimer;
/**
* Simple factory to create timers for repeating and non-repeating tasks.
*
* @author mroh004
*
*/
public interface TimerFactory {
public SimpleTimer scheduleOnce(int when, Runnable runnable);
public SimpleTimer scheduleRepeating(int offsetInMs, int intervallInMs,
Runnable runnable);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy