Class: Contrast::Agent::Reporting::Resend::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/contrast/agent/reporting/reporting_utilities/resend.rb

Overview

Methods that will initialize the resending state.

Instance Method Summary collapse

Constructor Details

#initializeStatus

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_attemptsInteger

Increase the Error rescues attempts.

Returns:

  • (Integer)


137
138
139
# File 'lib/contrast/agent/reporting/reporting_utilities/resend.rb', line 137

def increase_rescue_attempts
  @_rescue_attempts += 1
end

#rescue_attemptsInteger

return how many times the client has tried to rescue from error.

Returns:

  • (Integer)


123
124
125
# File 'lib/contrast/agent/reporting/reporting_utilities/resend.rb', line 123

def rescue_attempts
  @_rescue_attempts ||= 0
end

#reset_rescue_attemptsInteger

Reset Error rescues attempts.

Returns:

  • (Integer)


130
131
132
# File 'lib/contrast/agent/reporting/reporting_utilities/resend.rb', line 130

def reset_rescue_attempts
  @_rescue_attempts = 0
end