Module org.glassfish.hk2.runlevel
Package org.glassfish.hk2.runlevel
Interface ChangeableRunLevelFuture
- All Superinterfaces:
Future<Object>,RunLevelFuture
- All Known Implementing Classes:
CurrentTaskFuture
- Author:
- jwells
-
Method Summary
Modifier and TypeMethodDescriptionintchangeProposedLevel(int proposedLevel) Changes the proposedLevel of this future.Methods inherited from interface java.util.concurrent.Future
get, get, isCancelled, isDoneMethods 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
-