Package org.glassfish.hk2.runlevel
Interface ChangeableRunLevelFuture
-
- All Superinterfaces:
Future<Object>
,RunLevelFuture
- All Known Implementing Classes:
CurrentTaskFuture
public interface ChangeableRunLevelFuture extends RunLevelFuture
- Author:
- jwells
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
changeProposedLevel(int proposedLevel)
Changes the proposedLevel of this future.-
Methods inherited from interface java.util.concurrent.Future
get, get, isCancelled, isDone
-
Methods inherited from interface org.glassfish.hk2.runlevel.RunLevelFuture
cancel, getProposedLevel, isDown, isUp
-
-
-
-
Method Detail
-
changeProposedLevel
int changeProposedLevel(int proposedLevel) throws IllegalStateException
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
-
-