class Dynamoid::AdapterPlugin::AwsSdkV3::Middleware::Backoff
Public Class Methods
new(next_chain)
click to toggle source
# File lib/dynamoid/adapter_plugin/aws_sdk_v3/middleware/backoff.rb, line 9 def initialize(next_chain) @next_chain = next_chain @backoff = Dynamoid.config.backoff ? Dynamoid.config.build_backoff : nil end
Public Instance Methods
call(request)
click to toggle source
# File lib/dynamoid/adapter_plugin/aws_sdk_v3/middleware/backoff.rb, line 14 def call(request) response = @next_chain.call(request) @backoff.call if @backoff response end