Package com.dkt.graphics.extras.formula
Interface AbstractTimer.Action
- Enclosing class:
AbstractTimer<T extends AbstractCalculable>
public static interface AbstractTimer.Action
This interface contains all the methods that will be executed
after starting, pausing, resuming and stopping a timer.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
pause()
This method will be executed immediately after all the timer threads are paused.void
resume()
This method will be executed immediately after all the timer threads were resumed.void
start()
This method will be executed immediately after the timer starts and all threads are created and running.void
stop()
This method will be executed immediately after all the timer threads were stopped.
Note: is the responsibility of the coder to callAbstractTimer.stop()
at the end of the execution of the timer's instance
-
Method Details
-
start
void start()This method will be executed immediately after the timer starts and all threads are created and running. -
pause
void pause()This method will be executed immediately after all the timer threads are paused. -
resume
void resume()This method will be executed immediately after all the timer threads were resumed. -
stop
void stop()This method will be executed immediately after all the timer threads were stopped.
Note: is the responsibility of the coder to callAbstractTimer.stop()
at the end of the execution of the timer's instance
-