Interface SuspendResumeTaskManager

  • All Known Implementing Classes:
    DefaultSuspendResumeTaskManager

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

      • registerAsNonSuspendableTask

        void registerAsNonSuspendableTask​(java.lang.Thread task,
                                          java.lang.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​(java.lang.Thread task,
                                       java.lang.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