Class: Baidubce::NoRetryPolicy
- Inherits:
-
Object
- Object
- Baidubce::NoRetryPolicy
- Defined in:
- lib/baidubce/retry_policy.rb
Overview
A policy that never retries.
Instance Method Summary collapse
-
#get_delay_before_next_retry_in_millis(retries_attempted) ⇒ Object
Always returns 0.
-
#should_retry(http_code, retries_attempted) ⇒ Object
Always returns False.
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 |