@ Deprecated public int getDelay ( StaplerRequest req ) throws ServletException { String delay = req . getParameter ( "delay" ) ; if ( delay == null ) return getQuietPeriod ( ) ; try { // TODO: more unit handling if ( delay . endsWith ( "sec" ) ) delay = delay . substring ( 0 , delay . length ( ) - 3 ) ; if ( delay . endsWith ( "secs" ) ) delay = delay . substring ( 0 , delay . length ( ) - 4 ) ; return Integer . parseInt ( delay ) ; } catch ( NumberFormatException e ) { throw new ServletException ( "Invalid delay parameter value: " + delay ) ; } }
Computes the delay by taking the default value and the override in the request parameter into the account .