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);
}