aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
Public Member Functions | Static Public Member Functions | List of all members
Aws::Crt::S3::S3RetryStrategy Class Referencefinal

#include <S3.h>

Public Member Functions

 S3RetryStrategy (const S3RetryStrategy &)=delete
 
S3RetryStrategy & operator= (const S3RetryStrategy &)=delete
 
 S3RetryStrategy (S3RetryStrategy &&other) noexcept=default
 
S3RetryStrategy & operator= (S3RetryStrategy &&other) noexcept=default
 
 ~S3RetryStrategy () noexcept=default
 
 operator bool () const noexcept
 

Static Public Member Functions

static S3RetryStrategy CreateStandard () noexcept
 
static S3RetryStrategy CreateExponentialBackoff (Io::EventLoopGroup &elGroup, const S3RetryStrategyExponentialBackoffOptions &options={}) noexcept
 
static S3RetryStrategy CreateNoRetry () noexcept
 

Detailed Description

C++ binding over a CRT aws_retry_strategy handle. Owns the handle and releases it on destruction; construct one with the static Create* factories. Hand the result to S3ClientConfig::SetRetryStrategy or return it from a SetRetryStrategyFactory callback - the S3 client acquires its own reference at construction, so the binding may be destroyed afterward.

Move-only: the underlying handle has single-owner semantics here.

Constructor & Destructor Documentation

Aws::Crt::S3::S3RetryStrategy::S3RetryStrategy ( const S3RetryStrategy &  )
delete
Aws::Crt::S3::S3RetryStrategy::S3RetryStrategy ( S3RetryStrategy &&  other)
defaultnoexcept
Aws::Crt::S3::S3RetryStrategy::~S3RetryStrategy ( )
defaultnoexcept

Member Function Documentation

S3RetryStrategy Aws::Crt::S3::S3RetryStrategy::CreateExponentialBackoff ( Io::EventLoopGroup &  elGroup,
const S3RetryStrategyExponentialBackoffOptions &  options = {} 
)
staticnoexcept

Build an exponential-backoff retry strategy. Requires an event loop group to schedule the backoff timers on.

Parameters
elGroupevent loop group used to schedule retries.
optionsbackoff tuning knobs.
Returns
a binding owning the new strategy, or an empty binding on failure.
S3RetryStrategy Aws::Crt::S3::S3RetryStrategy::CreateNoRetry ( )
staticnoexcept

Build a strategy that disables retries.

Returns
a binding owning the new strategy, or an empty binding on failure.
S3RetryStrategy Aws::Crt::S3::S3RetryStrategy::CreateStandard ( )
staticnoexcept

Build a token-bucket standard retry strategy.

Returns
a binding owning the new strategy, or an empty binding on failure.
Aws::Crt::S3::S3RetryStrategy::operator bool ( ) const
inlineexplicitnoexcept
Returns
true if this binding owns a valid strategy handle.
S3RetryStrategy& Aws::Crt::S3::S3RetryStrategy::operator= ( const S3RetryStrategy &  )
delete
S3RetryStrategy& Aws::Crt::S3::S3RetryStrategy::operator= ( S3RetryStrategy &&  other)
defaultnoexcept

The documentation for this class was generated from the following files: