Interface ChangeableRunLevelFuture
- All Superinterfaces:
Future<Object>, RunLevelFuture
- All Known Implementing Classes:
CurrentTaskFuture
-
Method Summary
Modifier and TypeMethodDescriptionintchangeProposedLevel(int proposedLevel) Changes the proposedLevel of this future.Methods inherited from interface Future
get, get, isCancelled, isDoneMethods inherited from interface 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
-