Interface ProcessFeedback
- All Known Subinterfaces:
ProcessHandle
public interface ProcessFeedback
ProcessFeedback allows communication between process owner and process itself.
If you know processId, you can access its feedback using ProcessHandleManager.getFeedback(Long) method.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetStatus(ProcessStatus status) Updates process status
-
Method Details
-
setStatus
Updates process status- Parameters:
status- New status to be set todo state that it's not exception-free
-
isCancelled
boolean isCancelled()- Returns:
trueif the process has been asked to stop withProcessInfo.cancel()
-