Interface ChangeableRunLevelFuture

    • Method Detail

      • changeProposedLevel

        int changeProposedLevel​(int proposedLevel)
                         throws java.lang.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 - The new proposed level
        Returns:
        The old proposed level
        Throws:
        java.lang.IllegalStateException - if this is called on a future that is done