Class Rightscale::FlexiscaleConnectionHandler
In: lib/api/right_flexiscale_api.rb
Parent: Object

Simple connection errors handler

Methods

params  

Constants

HTTP_CONNECTION_RETRY_COUNT = 3   Number of times to retry the request after encountering the first error
HTTP_CONNECTION_RETRY_DELAY = 15   Length of the post-error probationary period during which all requests will fail

Public Class methods

Params accessor:

 Rightscale::FlexiscaleConnectionHandler.params[:http_connection_retry_count] = 5
 Rightscale::FlexiscaleConnectionHandler.params[:retriable_errors] << 'MyAwesomeExceptionClassName'

[Validate]