Class: PoliPage::RetryEvent

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#attemptObject (readonly)

Returns the value of attribute attempt

Returns:

  • (Object)

    the current value of attempt



11
12
13
# File 'lib/poli_page/retry_event.rb', line 11

def attempt
  @attempt
end

#delay_msObject (readonly)

Returns the value of attribute delay_ms

Returns:

  • (Object)

    the current value of delay_ms



11
12
13
# File 'lib/poli_page/retry_event.rb', line 11

def delay_ms
  @delay_ms
end

#reasonObject (readonly)

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



11
12
13
# File 'lib/poli_page/retry_event.rb', line 11

def reason
  @reason
end