private boolean shouldRetry(ApiException exception) {
    return exceptionsAllowedToRetry.contains(exception.getClass())
        && cumulativeSleepTime < errorTimeOut
        && (maxRetries == null || retryCounter < maxRetries);
  }
Preserve a request/response pair through an asynchronous callback.
src/main/java/com/google/maps/internal/OkHttpPendingResult.java