Interface Runner
- All Superinterfaces:
Runnable
- All Known Implementing Classes:
AbstractRunner
Interface for all Runners (periodic threads used in dispatcher/engine). It handles "stop" flag, so thread should
know, when to stop and can be stopped from outside.
- Author:
- David Ĺ arman
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return TRUE if Runner thread processing should stop.void
stop()
Stop Runner thread (it's not interrupt - thread stops by own implementation in run() method).
-
Method Details
-
shouldStop
boolean shouldStop()Return TRUE if Runner thread processing should stop.- Returns:
- TRUE if should stop / FALSE otherwise
-
stop
void stop()Stop Runner thread (it's not interrupt - thread stops by own implementation in run() method).
-