Interface SuspendResumeTaskManager

All Known Implementing Classes:
DefaultSuspendResumeTaskManager

public interface SuspendResumeTaskManager
Register the threads with platform suspend/resume framework
  • Method Details

    • registerAsNonSuspendableTask

      void registerAsNonSuspendableTask(Thread task, String statusInfo)
      Try to register the task as NonSuspendable thread
      Parameters:
      task - instance of Thread to register
      statusInfo - status info to expose to framework
    • registerAsSuspendableTask

      void registerAsSuspendableTask(Thread task, String statusInfo)
      Try to register the task as Suspendable thread
      Parameters:
      task - instance of Thread to register
      statusInfo - status info to expose to framework
    • isSystemRunning

      boolean isSystemRunning()
      Query id the system is in the running state
      Returns:
      true if the system is running, false otherwise