File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
retries/src/main/java/software/amazon/awssdk/retries/internal
sdk-core/src/main/java/software/amazon/awssdk/core/retry Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 23
23
import software .amazon .awssdk .retries .api .RefreshRetryTokenRequest ;
24
24
import software .amazon .awssdk .retries .internal .circuitbreaker .TokenBucketStore ;
25
25
import software .amazon .awssdk .utils .Logger ;
26
+ import software .amazon .awssdk .utils .Validate ;
26
27
27
28
@ SdkInternalApi
28
29
public final class DefaultLegacyRetryStrategy
@@ -34,9 +35,9 @@ public final class DefaultLegacyRetryStrategy
34
35
35
36
DefaultLegacyRetryStrategy (Builder builder ) {
36
37
super (LOG , builder );
37
- this .throttlingExceptionCost = builder .throttlingExceptionCost ;
38
- this .throttlingBackoffStrategy = builder .throttlingBackoffStrategy ;
39
- this .treatAsThrottling = builder .treatAsThrottling ;
38
+ this .throttlingExceptionCost = Validate . paramNotNull ( builder .throttlingExceptionCost , "throttlingExceptionCost" ) ;
39
+ this .throttlingBackoffStrategy = Validate . paramNotNull ( builder .throttlingBackoffStrategy , "throttlingBackoffStrategy" ) ;
40
+ this .treatAsThrottling = Validate . paramNotNull ( builder .treatAsThrottling , "treatAsThrottling" ) ;
40
41
}
41
42
42
43
@ Override
Original file line number Diff line number Diff line change 15
15
16
16
package software .amazon .awssdk .core .retry ;
17
17
18
- import java .time .Duration ;
19
18
import java .util .Objects ;
20
19
import software .amazon .awssdk .annotations .Immutable ;
21
20
import software .amazon .awssdk .annotations .SdkPublicApi ;
You can’t perform that action at this time.
0 commit comments