Package org.springframework.retry.backoff

Examples of org.springframework.retry.backoff.UniformRandomBackOffPolicy


        policy.setSleeper(sleeper);
      }
      return policy;
    }
    if (max > min) {
      UniformRandomBackOffPolicy policy = new UniformRandomBackOffPolicy();
      policy.setMinBackOffPeriod(min);
      policy.setMaxBackOffPeriod(max);
      if (sleeper != null) {
        policy.setSleeper(sleeper);
      }
      return policy;
    }
    FixedBackOffPolicy policy = new FixedBackOffPolicy();
    policy.setBackOffPeriod(min);
    if (sleeper != null) {
      policy.setSleeper(sleeper);
    }
    return policy;
  }
View Full Code Here

TOP

Related Classes of org.springframework.retry.backoff.UniformRandomBackOffPolicy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.