class Baidubce::NoRetryPolicy

A policy that never retries.

Public Instance Methods

get_delay_before_next_retry_in_millis(retries_attempted) click to toggle source

Always returns 0.

# File lib/baidubce/retry_policy.rb, line 28
def get_delay_before_next_retry_in_millis(retries_attempted)
    0
end
should_retry(http_code, retries_attempted) click to toggle source

Always returns False.

# File lib/baidubce/retry_policy.rb, line 23
def should_retry(http_code, retries_attempted)
    false
end