NMAExponentialRetryPolicy

@objc
public class NMAExponentialRetryPolicy : NSObject, NMARetryPolicy

The operation will be retried at exponential intervals. Delay will be incremented by multiplier after each iteration (multiplier = 0.5 means 50% increment).

  • The number of maximum retry counts.

    Declaration

    Swift

    @objc
    public let maxRetries: Int
  • The time interval of the initial delay.

    Declaration

    Swift

    @objc
    public let initialDelayInSeconds: TimeInterval
  • The multiplier of the delay interval.

    Declaration

    Swift

    @objc
    public let multiplier: Double
  • The maximum delay.

    Declaration

    Swift

    @objc
    public let maximumDelayInSeconds: TimeInterval
  • This is the default initializer for the NMAExponentialRetryPolicy.

    Declaration

    Swift

    @objc
    public init(maxRetries: Int, initialDelayInSeconds: TimeInterval, multiplier: Double, maximumDelayInSeconds: TimeInterval)

    Parameters

    maxRetries

    the number of maximum retry counts.

    initialDelayInSeconds

    the time interval of the initial delay.

    multiplier

    the multiplier of the delay interval.

    maximumDelayInSeconds

    the maximum delay.

  • Declaration

    Swift

    public required init?(dictionary: [String : Any])