Interface LoadingLimits

    • Method Detail

      • getPermanentLimit

        double getPermanentLimit()
        Get the permanent limit.
        Returns:
        the permanent limit.
      • setPermanentLimit

        LoadingLimits setPermanentLimit​(double permanentLimit)
        Set the permanent limit
        Parameters:
        permanentLimit - the permanent limit
        Returns:
        itself for method chaining
      • getTemporaryLimits

        Collection<LoadingLimits.TemporaryLimit> getTemporaryLimits()
        Get a list of temporary limits ordered by descending duration.
        Returns:
        a list of temporary limits ordered by descending duration
      • getTemporaryLimit

        LoadingLimits.TemporaryLimit getTemporaryLimit​(int acceptableDuration)
        Get a temporary limit from its acceptable duration. Return null if there is non temporary limit with this acceptable duration.
        Parameters:
        acceptableDuration - acceptable duration in second
        Returns:
        the temporary limit
      • getTemporaryLimitValue

        double getTemporaryLimitValue​(int acceptableDuration)
        Get a temporary limit value from its acceptable duration. Return NaN if there is non temporary limit with this acceptable duration.
        Parameters:
        acceptableDuration - acceptable duration in second
        Returns:
        the temporary limit value or NaN if there is no temporary limit for this acceptable duration