Package org.platformlayer.exceptions

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


        // 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

Related Classes of org.platformlayer.exceptions.HasRetryInfo

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.