Interface SuspendResumeTaskManager
-
- All Known Implementing Classes:
DefaultSuspendResumeTaskManager
public interface SuspendResumeTaskManagerRegister the threads with platform suspend/resume framework
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisSystemRunning()Query id the system is in the running statevoidregisterAsNonSuspendableTask(java.lang.Thread task, java.lang.String statusInfo)Try to register the task as NonSuspendable threadvoidregisterAsSuspendableTask(java.lang.Thread task, java.lang.String statusInfo)Try to register the task as Suspendable thread
-
-
-
Method Detail
-
registerAsNonSuspendableTask
void registerAsNonSuspendableTask(java.lang.Thread task, java.lang.String statusInfo)Try to register the task as NonSuspendable thread- Parameters:
task- instance ofThreadto registerstatusInfo- 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 ofThreadto registerstatusInfo- 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
-
-