Class: Dynamoid::AdapterPlugin::AwsSdkV3::Middleware::Backoff
- Inherits:
-
Object
- Object
- Dynamoid::AdapterPlugin::AwsSdkV3::Middleware::Backoff
- Defined in:
- lib/dynamoid/adapter_plugin/aws_sdk_v3/middleware/backoff.rb
Instance Method Summary collapse
- #call(request) ⇒ Object
-
#initialize(next_chain) ⇒ Backoff
constructor
A new instance of Backoff.
Constructor Details
Instance Method Details
#call(request) ⇒ Object
14 15 16 17 18 19 |
# 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 |