15 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_RETRY_POLICY_H
16 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_RETRY_POLICY_H
18 #include "google/cloud/storage/version.h"
19 #include "google/cloud/internal/backoff_policy.h"
20 #include "google/cloud/internal/retry_policy.h"
21 #include "google/cloud/status.h"
30 static bool IsPermanentFailure(
Status const& status) {
41 ::
google::
cloud::internal::TraitBasedRetryPolicy<internal::StatusTraits>;
44 using LimitedTimeRetryPolicy =
45 ::
google::
cloud::internal::LimitedTimeRetryPolicy<internal::StatusTraits>;
48 using LimitedErrorCountRetryPolicy =
49 ::
google::
cloud::internal::LimitedErrorCountRetryPolicy<
50 internal::StatusTraits>;
53 using BackoffPolicy = ::
google::
cloud::internal::BackoffPolicy;
56 using ExponentialBackoffPolicy =
57 ::
google::
cloud::internal::ExponentialBackoffPolicy;