mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 19:37:18 +01:00
19 lines
627 B
Java
19 lines
627 B
Java
package com.amazonaws.internal;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes.dex */
|
|
public class DynamoDBBackoffStrategy extends CustomBackoffStrategy {
|
|
public static final CustomBackoffStrategy DEFAULT = new DynamoDBBackoffStrategy();
|
|
|
|
@Override // com.amazonaws.internal.CustomBackoffStrategy
|
|
public int getBackoffPeriod(int i) {
|
|
if (i <= 0) {
|
|
return 0;
|
|
}
|
|
int pow = ((int) Math.pow(2.0d, i - 1)) * 50;
|
|
if (pow < 0) {
|
|
return Integer.MAX_VALUE;
|
|
}
|
|
return pow;
|
|
}
|
|
}
|