Class AbstractRunner
java.lang.Object
cz.metacentrum.perun.taskslib.runners.impl.AbstractRunner
Extensible stub for all Runners (periodic threads used in dispatcher). It handles "stop" flag, so thread should know,
when to stop and can be stopped from outside.
- Author:
- David Ĺ arman
-
Constructor Summary
-
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).
-
Constructor Details
-
AbstractRunner
public AbstractRunner()
-
-
Method Details
-
shouldStop
public boolean shouldStop()Description copied from interface:Runner
Return TRUE if Runner thread processing should stop.- Specified by:
shouldStop
in interfaceRunner
- Returns:
- TRUE if should stop / FALSE otherwise
-
stop
public void stop()Description copied from interface:Runner
Stop Runner thread (it's not interrupt - thread stops by own implementation in run() method).
-