private static boolean isRetryable()

in cloud-spanner-r2dbc/src/main/java/com/google/cloud/spanner/r2dbc/util/SpannerExceptionUtil.java [111:121]


  private static boolean isRetryable(StatusRuntimeException statusRuntimeException) {
    if (statusRuntimeException.getStatus().getCode() == Status.Code.INTERNAL
        && RETRYABLE_ERROR_MESSAGES.stream().anyMatch(
            errorFragment -> statusRuntimeException.getMessage().contains(errorFragment))) {
      return true;
    }

    return statusRuntimeException.getStatus().getCode() == Status.Code.RESOURCE_EXHAUSTED
        && extractRetryDelay(statusRuntimeException) != null;

  }