Method: Aws::Plugins::Retries::ClockSkew#initialize
- Defined in:
- lib/aws-sdk-core/plugins/retries/clock_skew.rb
#initialize ⇒ ClockSkew
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ClockSkew.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/aws-sdk-core/plugins/retries/clock_skew.rb', line 12 def initialize @mutex = Mutex.new # clock_corrections are recorded only on errors # and only when time difference is greater than the # CLOCK_SKEW_THRESHOLD @endpoint_clock_corrections = Hash.new(0) # estimated_skew is calculated on every request # and is used to estimate a TTL for requests @endpoint_estimated_skews = Hash.new(nil) end |