Class: Baidubce::NoRetryPolicy

Inherits:
Object
  • Object
show all
Defined in:
lib/baidubce/retry_policy.rb

Overview

A policy that never retries.

Instance Method Summary collapse

Instance Method Details

#get_delay_before_next_retry_in_millis(retries_attempted) ⇒ Object

Always returns 0.



28
29
30
# 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) ⇒ Object

Always returns False.



23
24
25
# File 'lib/baidubce/retry_policy.rb', line 23

def should_retry(http_code, retries_attempted)
    false
end