AZSRetryContext Class Reference

Inherits from NSObject
Declared in AZSRetryContext.h
AZSRetryContext.m

Overview

A RetryContext is an input to a RetryPolicy’s evaluate method. It contains all the information necessary for a RetryPolicy to evaluate whether or not the request should be retried.

  currentRetryCount

The retry count. Begins at 1 (if the first attempt fails, this will be 1 when evaluating whether or not to retry.

@property NSInteger currentRetryCount

Discussion

The retry count. Begins at 1 (if the first attempt fails, this will be 1 when evaluating whether or not to retry.

Declared In

AZSRetryContext.h

  lastRequestResult

The most recent (failing) request result.

@property (strong) AZSRequestResult *lastRequestResult

Discussion

The most recent (failing) request result.

Declared In

AZSRetryContext.h

  nextLocation

The next location to try.

@property AZSStorageLocation nextLocation

Discussion

The next location to try.

Declared In

AZSRetryContext.h

  currentLocationMode

The current location mode.

@property AZSStorageLocationMode currentLocationMode

Discussion

The current location mode.

Declared In

AZSRetryContext.h