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