Package org.glassfish.hk2.runlevel
Interface ProgressStartedListener
-
@Contract public interface ProgressStartedListener
Instances of classes implementing this contract can be registered with HK2 to be informed when the system starts progressing to a new level, either upward or downwardLengthy operations should not be performed in the listener since that may impact the performance of the RunLevelController calling the listener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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
-
-
-
Method Detail
-
onProgressStarting
void onProgressStarting(ChangeableRunLevelFuture currentJob, int currentLevel)
Called when the RunLevelController starts progressing to a new level but before any work has been done yetNeither
RunLevelController.proceedTo(int)
norRunLevelController.proceedToAsync(int)
may be called from this method. However,ChangeableRunLevelFuture.changeProposedLevel(int)
may be calledAny exception thrown from this method is ignored
- Parameters:
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 down
-
-