Package org.springframework.osgi.service.importer.support.internal.support

Examples of org.springframework.osgi.service.importer.support.internal.support.RetryTemplate


   * if both values are the same, no restart will be applied.
   *
   * @param millisBetweenRetries The millisBetweenRetries to set.
   */
  public void setTimeout(long millisBetweenRetries) {
    RetryTemplate rt;
    int retries;

    synchronized (monitor) {
      this.retryTimeout = millisBetweenRetries;
      rt = retryTemplate;
      retries = this.retriesNumber;
    }

    if (rt != null) {
      rt.reset(retries, millisBetweenRetries);
    }
  }
View Full Code Here


   * if both values are the same, no restart will be applied.
   *
   * @param timeoutInMillis Timeout to set, in milliseconds
   */
  public void setTimeout(long timeoutInMillis) {
    RetryTemplate rt;

    synchronized (monitor) {
      this.retryTimeout = timeoutInMillis;
      rt = retryTemplate;
    }

    if (rt != null) {
      rt.reset(timeoutInMillis);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.osgi.service.importer.support.internal.support.RetryTemplate

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.