Package com.groiss.timer
Interface TimerTask
- All Known Implementing Classes:
BatchManager
,ImportTimer
public interface TimerTask
A Task for the Timer. This interface must be implemented by classes that
should be controlled by the timer mechanism.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
abort()
Abort the running timer task.void
run
(TimerEntry e, String arg) A timer task is started.
-
Method Details
-
run
A timer task is started.- Parameters:
e
- the persistent timer entryarg
- the argument string defined in the timer entry.- Throws:
Exception
-
abort
default void abort()Abort the running timer task. This method is not called in the current implementation. Future extensions will allow to abort a running timer task.
-