Interface Runner

All Superinterfaces:
Runnable
All Known Implementing Classes:
AbstractRunner

public interface Runner extends Runnable
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 Type
    Method
    Description
    boolean
    Return TRUE if Runner thread processing should stop.
    void
    Stop Runner thread (it's not interrupt - thread stops by own implementation in run() method).

    Methods inherited from interface java.lang.Runnable

    run
  • 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).