- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
46 lines
1.1 KiB
Java
46 lines
1.1 KiB
Java
package com.helpshift.poller;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public class ExponentialBackoff {
|
|
public int baseInterval;
|
|
public int currentInterval;
|
|
public int maxInterval;
|
|
|
|
public int nextInterval(int i) {
|
|
if (i == 0) {
|
|
return this.currentInterval;
|
|
}
|
|
if ((i < 200 || i >= 400) && i < 500) {
|
|
this.currentInterval = -1;
|
|
} else {
|
|
int i2 = this.currentInterval;
|
|
int i3 = i2 * 2;
|
|
int i4 = this.maxInterval;
|
|
if (i3 <= i4) {
|
|
i4 = i2 * 2;
|
|
}
|
|
this.currentInterval = i4;
|
|
}
|
|
return this.currentInterval;
|
|
}
|
|
|
|
public void reconcileIntervals(int i, int i2) {
|
|
if (this.baseInterval == i && this.maxInterval == i2) {
|
|
return;
|
|
}
|
|
this.baseInterval = i;
|
|
this.maxInterval = i2;
|
|
this.currentInterval = i;
|
|
}
|
|
|
|
public void reset() {
|
|
this.currentInterval = this.baseInterval;
|
|
}
|
|
|
|
public ExponentialBackoff(int i, int i2) {
|
|
this.baseInterval = i;
|
|
this.maxInterval = i2;
|
|
this.currentInterval = i;
|
|
}
|
|
}
|