Examples of HasRetryInfo


Examples of org.platformlayer.exceptions.HasRetryInfo

    super(cause);
    copyRetryInfo(cause);
  }

  protected void copyRetryInfo(Throwable cause) {
    HasRetryInfo retryInfo = ExceptionHelpers.findRetryInfo(cause);
    if (retryInfo != null) {
      this.retry = retryInfo.getRetry();
    }
  }
View Full Code Here

Examples of org.platformlayer.exceptions.HasRetryInfo

        // boolean isDone = false; // We will retry
        activeJob.setState(JobState.FAILED);

        TimeSpan retry = null;

        HasRetryInfo retryInfo = ExceptionHelpers.findRetryInfo(e);
        if (retryInfo != null) {
          retry = retryInfo.getRetry();
        }

        if (retry == null) {
          // TODO: Eventually give up??
          retry = ApplicationMode.isDevelopment() ? TimeSpan.ONE_MINUTE : TimeSpan.FIVE_MINUTES;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.