Interface SuspendResumeTaskManager
- All Known Implementing Classes:
DefaultSuspendResumeTaskManager
public interface SuspendResumeTaskManager
Register the threads with platform suspend/resume framework
-
Method Summary
Modifier and TypeMethodDescriptionbooleanQuery id the system is in the running statevoidregisterAsNonSuspendableTask(Thread task, String statusInfo) Try to register the task as NonSuspendable threadvoidregisterAsSuspendableTask(Thread task, String statusInfo) Try to register the task as Suspendable thread
-
Method Details
-
registerAsNonSuspendableTask
Try to register the task as NonSuspendable thread- Parameters:
task- instance ofThreadto registerstatusInfo- status info to expose to framework
-
registerAsSuspendableTask
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
-