@Contract public interface ProgressStartedListener
Lengthy operations should not be performed in the listener since that may impact the performance of the RunLevelController calling the listener
Modifier and Type | Method and Description |
---|---|
void |
onProgressStarting(ChangeableRunLevelFuture currentJob,
int currentLevel)
Called when the RunLevelController starts progressing to a new
level but before any work has been done yet
|
void onProgressStarting(ChangeableRunLevelFuture currentJob, int currentLevel)
Neither RunLevelController.proceedTo(int)
nor
RunLevelController.proceedToAsync(int)
may be called from this method. However,
ChangeableRunLevelFuture.changeProposedLevel(int)
may be called
Any exception thrown from this method is ignored
currentJob
- the job currently runningcurrentLevel
- the level that the system is currently at before
any work has been done to move the system up or downCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.