Module org.glassfish.hk2.runlevel
Package org.glassfish.hk2.runlevel
Interface ChangeableRunLevelFuture
- All Superinterfaces:
Future<Object>,RunLevelFuture
- All Known Implementing Classes:
CurrentTaskFuture
- Author:
- jwells
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State -
Method Summary
Modifier and TypeMethodDescriptionintchangeProposedLevel(int proposedLevel) Changes the proposedLevel of this future.Methods inherited from interface java.util.concurrent.Future
exceptionNow, get, get, isCancelled, isDone, resultNow, stateMethods inherited from interface org.glassfish.hk2.runlevel.RunLevelFuture
cancel, getProposedLevel, isDown, isUp
-
Method Details
-
changeProposedLevel
Changes the proposedLevel of this future. A future cannot have its level changed if it is doneThis method may be called from the
RunLevelListener.onProgress(ChangeableRunLevelFuture, int)callback- Parameters:
proposedLevel- The new proposed level- Returns:
- The old proposed level
- Throws:
IllegalStateException- if this is called on a future that is done
-