public static BackoffStrategy fixedBackoff ( long sleepTime , TimeUnit timeUnit ) throws IllegalStateException { Preconditions . checkNotNull ( timeUnit , "The time unit may not be null" ) ; return new FixedBackoffStrategy ( timeUnit . toMillis ( sleepTime ) ) ; }
Returns a backoff strategy that waits a fixed amount of time before retrying .