AWS SDK for C++
AWS SDK for C++ Version 1.11.440
Main Page
Related Pages
Namespaces
Classes
Modules
Search
Loading...
Searching...
No Matches
src
aws-cpp-sdk-core
include
aws
core
client
DefaultRetryStrategy.h
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
const
char
*
GetStrategyName
()
const override
{
return
"default"
;}
31
32
protected
:
33
long
m_scaleFactor
;
34
long
m_maxRetries
;
35
};
36
37
}
// namespace Client
38
}
// namespace Aws
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:34
Aws::Client::DefaultRetryStrategy::m_scaleFactor
long m_scaleFactor
Definition
DefaultRetryStrategy.h:33
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::GetStrategyName
const char * GetStrategyName() const override
Definition
DefaultRetryStrategy.h:30
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.8
Privacy |
Site terms |
Cookie preferences