Class: Contrast::Agent::Reporting::Resend::Status
- Defined in:
- lib/contrast/agent/reporting/reporting_utilities/resend.rb
Overview
Methods that will initialize the resending state.
Instance Method Summary collapse
-
#increase_rescue_attempts ⇒ Integer
Increase the Error rescues attempts.
-
#initialize ⇒ Status
constructor
RESEND_STARTUP_EVENTS = 4.
-
#rescue_attempts ⇒ Integer
return how many times the client has tried to rescue from error.
-
#reset_rescue_attempts ⇒ Integer
Reset Error rescues attempts.
Constructor Details
#initialize ⇒ Status
RESEND_STARTUP_EVENTS = 4
116 117 118 |
# File 'lib/contrast/agent/reporting/reporting_utilities/resend.rb', line 116 def initialize @_rescue_attempts = 0 end |
Instance Method Details
#increase_rescue_attempts ⇒ Integer
Increase the Error rescues attempts.
137 138 139 |
# File 'lib/contrast/agent/reporting/reporting_utilities/resend.rb', line 137 def increase_rescue_attempts @_rescue_attempts += 1 end |
#rescue_attempts ⇒ Integer
return how many times the client has tried to rescue from error.
123 124 125 |
# File 'lib/contrast/agent/reporting/reporting_utilities/resend.rb', line 123 def rescue_attempts @_rescue_attempts ||= 0 end |
#reset_rescue_attempts ⇒ Integer
Reset Error rescues attempts.
130 131 132 |
# File 'lib/contrast/agent/reporting/reporting_utilities/resend.rb', line 130 def reset_rescue_attempts @_rescue_attempts = 0 end |