feat!: Make Retryer conform to a public interface #521
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #
awslabs/aws-sdk-swift#699
Description of changes
Configuration objects may now define properties whose type is different from the concrete type. This is used to provide an abstract
Retryer
while creating it from a conforming concrete type.type
field onConfigField
is replaced by aconcreteType
and aprotocolType
.protocolType
is optional, and if provided, is used as the type of the config property. IfprotocolType
is not provided, the config property is of the same type as the concrete value.The
Retryer
protocol is exposed publicly to define an interface for controlling retry.Retryer
protocol type is made public.RetryerMiddleware
is configured with an abstractRetryer
instead of a concreteSDKRetryer
, to allow different retry mechanisms to be easily used with the same middleware.SDKRuntimeConfiguration
protocol provides aRetryer
instead of a concreteSDKRetryer
.DefaultSDKRuntimeConfiguration
is modified to conform toSDKRuntimeConfiguration
.Scope
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.