Class: PoliPage::RetryEvent
- Inherits:
-
Data
- Object
- Data
- PoliPage::RetryEvent
- Defined in:
- lib/poli_page/retry_event.rb
Overview
Event payload for the ‘on_retry` constructor hook (sdk-ruby-plan.md §10.2).
-
‘attempt` [Integer] 1-based — the attempt about to be made.
-
‘delay_ms` [Integer] sleep duration in milliseconds before this
attempt. Canonical units across the SDK fleet (Plan 0 / roadmap D3). -
‘reason` [PoliPage::Error] error that triggered the retry.
Instance Attribute Summary collapse
-
#attempt ⇒ Object
readonly
Returns the value of attribute attempt.
-
#delay_ms ⇒ Object
readonly
Returns the value of attribute delay_ms.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Attribute Details
#attempt ⇒ Object (readonly)
Returns the value of attribute attempt
11 12 13 |
# File 'lib/poli_page/retry_event.rb', line 11 def attempt @attempt end |
#delay_ms ⇒ Object (readonly)
Returns the value of attribute delay_ms
11 12 13 |
# File 'lib/poli_page/retry_event.rb', line 11 def delay_ms @delay_ms end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
11 12 13 |
# File 'lib/poli_page/retry_event.rb', line 11 def reason @reason end |