Top Methods
org.glassfish.hk2.runlevel

public Interface ChangeableRunLevelFuture

extends RunLevelFuture
Known Direct Implementers
org.glassfish.hk2.runlevel.internal.CurrentTaskFuture

Author
jwells

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

The old proposed level
changeProposedLevel
(int
The new proposed level
proposedLevel
)

Changes the proposedLevel of this future.

Inherited from org.glassfish.hk2.runlevel.RunLevelFuture:
cancelgetProposedLevelisDownisUp

Method Detail

changeProposedLevelback to summary
public int changeProposedLevel(int proposedLevel) throws IllegalStateException

Changes the proposedLevel of this future. A future cannot have its level changed if it is done

This method may be called from the RunLevelListener#onProgress(ChangeableRunLevelFuture, int) callback

Parameters
proposedLevel:int

The new proposed level

Returns:int

The old proposed level

Exceptions
IllegalStateException:
if this is called on a future that is done