AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
aws-cpp-sdk-core
include
aws
core
client
DefaultRetryStrategy.h
Go to the documentation of this file.
1
6
#pragma once
7
8
#include <
aws/core/Core_EXPORTS.h
>
9
#include <
aws/core/client/RetryStrategy.h
>
10
11
namespace
Aws
12
{
13
namespace
Client
14
{
15
16
class
AWS_CORE_API
DefaultRetryStrategy
:
public
RetryStrategy
17
{
18
public
:
19
20
DefaultRetryStrategy
(
long
maxRetries = 10,
long
scaleFactor = 25) :
21
m_scaleFactor(scaleFactor), m_maxRetries(maxRetries)
22
{}
23
24
bool
ShouldRetry
(
const
AWSError<CoreErrors>
& error,
long
attemptedRetries)
const override
;
25
26
long
CalculateDelayBeforeNextRetry
(
const
AWSError<CoreErrors>
& error,
long
attemptedRetries)
const override
;
27
28
virtual
long
GetMaxAttempts
()
const override
{
return
m_maxRetries + 1; }
29
30
protected
:
31
long
m_scaleFactor
;
32
long
m_maxRetries
;
33
};
34
35
}
// namespace Client
36
}
// namespace Aws
Core_EXPORTS.h
AWS_CORE_API
#define AWS_CORE_API
Definition:
Core_EXPORTS.h:26
RetryStrategy.h
Aws::Client::AWSError
Definition:
AWSError.h:42
Aws::Client::DefaultRetryStrategy
Definition:
DefaultRetryStrategy.h:17
Aws::Client::DefaultRetryStrategy::m_maxRetries
long m_maxRetries
Definition:
DefaultRetryStrategy.h:32
Aws::Client::DefaultRetryStrategy::m_scaleFactor
long m_scaleFactor
Definition:
DefaultRetryStrategy.h:31
Aws::Client::DefaultRetryStrategy::GetMaxAttempts
virtual long GetMaxAttempts() const override
Definition:
DefaultRetryStrategy.h:28
Aws::Client::DefaultRetryStrategy::CalculateDelayBeforeNextRetry
long CalculateDelayBeforeNextRetry(const AWSError< CoreErrors > &error, long attemptedRetries) const override
Aws::Client::DefaultRetryStrategy::ShouldRetry
bool ShouldRetry(const AWSError< CoreErrors > &error, long attemptedRetries) const override
Aws::Client::DefaultRetryStrategy::DefaultRetryStrategy
DefaultRetryStrategy(long maxRetries=10, long scaleFactor=25)
Definition:
DefaultRetryStrategy.h:20
Aws::Client::RetryStrategy
Definition:
RetryStrategy.h:39
Aws
Definition:
AmazonSerializableWebServiceRequest.h:16
Generated by
1.9.7
Privacy |
Site terms |
Cookie preferences