Package com.elastisys.scale.commons.net.retryable

Examples of com.elastisys.scale.commons.net.retryable.RetryLimitExceededException


  @Override
  public Action<Multimap<String, Address>> maxRetriesExceeded(
      Multimap<String, Address> withResponse) {
    String message = format("Maximum number of retries (%d) exceeded. "
        + "Last response: %s", this.maxRetries, withResponse);
    RetryLimitExceededException failureReason = new RetryLimitExceededException(
        message);
    return Action.fail(failureReason);
  }
View Full Code Here


  @Override
  public Action<AutoScalingGroup> maxRetriesExceeded(
      AutoScalingGroup withResponse) {
    String message = format("Maximum number of retries (%d) exceeded. "
        + "Last response: %s", this.maxRetries, withResponse);
    RetryLimitExceededException failureReason = new RetryLimitExceededException(
        message);
    return Action.fail(failureReason);
  }
View Full Code Here

  @Override
  public Action<InstanceState> maxRetriesExceeded(InstanceState withResponse) {
    String message = format("Maximum number of retries (%d) exceeded. "
        + "Last response: %s", this.maxRetries, withResponse);
    RetryLimitExceededException failureReason = new RetryLimitExceededException(
        message);
    return Action.fail(failureReason);
  }
View Full Code Here

  @Override
  public Action<InstanceStatus> maxRetriesExceeded(InstanceStatus withResponse) {
    String message = format("Maximum number of retries (%d) exceeded. "
        + "Last response: %s", this.maxRetries, withResponse);
    RetryLimitExceededException failureReason = new RetryLimitExceededException(
        message);
    return Action.fail(failureReason);
  }
View Full Code Here

   * @return The {@link Action} to proceed with.
   */
  public Action<R> maxRetriesExceeded(Exception withError) {
    String message = format("Maximum number of retries (%d) exceeded. "
        + "Last error: %s", this.maxRetries, withError.getMessage());
    RetryLimitExceededException failureReason = new RetryLimitExceededException(
        message, withError);
    return Action.fail(failureReason);
  }
View Full Code Here

  @Override
  public Action<HttpRequestResponse> maxRetriesExceeded(
      HttpRequestResponse withResponse) {
    String message = format("Maximum number of retries (%d) exceeded. "
        + "Last response: %s", this.maxRetries, withResponse);
    RetryLimitExceededException failureReason = new RetryLimitExceededException(
        message);
    return Action.fail(failureReason);
  }
View Full Code Here

  @Override
  public Action<SshCommandResult> maxRetriesExceeded(
      SshCommandResult lastResponse) {
    String message = format("Maximum number of retries (%d) exceeded. "
        + "Last response: %s", this.maxRetries, lastResponse);
    RetryLimitExceededException failureReason = new RetryLimitExceededException(
        message);
    return Action.fail(failureReason);
  }
View Full Code Here

  @Override
  public Action<T> maxRetriesExceeded(T withResponse) {
    String message = format("Maximum number of retries (%d) exceeded. "
        + "Last error: %s", this.maxRetries, withResponse);
    RetryLimitExceededException failureReason = new RetryLimitExceededException(
        message);
    return Action.fail(failureReason);
  }
View Full Code Here

  public Action<R> maxRetriesExceeded(R withResponse) {
    String message = format("Maximum number of retries (%d) exceeded "
        + "without encountering any response that "
        + "satisfied predicate. " + "Last response was: %s",
        this.maxRetries, withResponse);
    RetryLimitExceededException failureReason = new RetryLimitExceededException(
        message);
    return Action.fail(failureReason);
  }
View Full Code Here

TOP

Related Classes of com.elastisys.scale.commons.net.retryable.RetryLimitExceededException

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.