Interface SingleTaskExecutor

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean stop​(java.lang.Runnable task)
      Atomically stop the active task
      java.lang.Runnable task()  
      • Methods inherited from interface java.util.concurrent.Executor

        execute
    • Method Detail

      • task

        java.lang.Runnable task()
        Returns:
        the active task instance, null if no active task is being executed at the moment
      • stop

        boolean stop​(java.lang.Runnable task)
        Atomically stop the active task
        Parameters:
        task - the task to check if it is still active
        Returns:
        true if the task was still active and stopped, false otherwise