- 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
63 lines
2.6 KiB
Java
63 lines
2.6 KiB
Java
package com.amazonaws.retry;
|
|
|
|
import com.amazonaws.AmazonClientException;
|
|
import com.amazonaws.AmazonWebServiceRequest;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class RetryPolicy {
|
|
public final BackoffStrategy backoffStrategy;
|
|
public final boolean honorMaxErrorRetryInClientConfig;
|
|
public final int maxErrorRetry;
|
|
public final RetryCondition retryCondition;
|
|
|
|
public interface BackoffStrategy {
|
|
public static final BackoffStrategy NO_DELAY = new BackoffStrategy() { // from class: com.amazonaws.retry.RetryPolicy.BackoffStrategy.1
|
|
@Override // com.amazonaws.retry.RetryPolicy.BackoffStrategy
|
|
public long delayBeforeNextRetry(AmazonWebServiceRequest amazonWebServiceRequest, AmazonClientException amazonClientException, int i) {
|
|
return 0L;
|
|
}
|
|
};
|
|
|
|
long delayBeforeNextRetry(AmazonWebServiceRequest amazonWebServiceRequest, AmazonClientException amazonClientException, int i);
|
|
}
|
|
|
|
public interface RetryCondition {
|
|
public static final RetryCondition NO_RETRY_CONDITION = new RetryCondition() { // from class: com.amazonaws.retry.RetryPolicy.RetryCondition.1
|
|
@Override // com.amazonaws.retry.RetryPolicy.RetryCondition
|
|
public boolean shouldRetry(AmazonWebServiceRequest amazonWebServiceRequest, AmazonClientException amazonClientException, int i) {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
boolean shouldRetry(AmazonWebServiceRequest amazonWebServiceRequest, AmazonClientException amazonClientException, int i);
|
|
}
|
|
|
|
public BackoffStrategy getBackoffStrategy() {
|
|
return this.backoffStrategy;
|
|
}
|
|
|
|
public int getMaxErrorRetry() {
|
|
return this.maxErrorRetry;
|
|
}
|
|
|
|
public RetryCondition getRetryCondition() {
|
|
return this.retryCondition;
|
|
}
|
|
|
|
public boolean isMaxErrorRetryInClientConfigHonored() {
|
|
return this.honorMaxErrorRetryInClientConfig;
|
|
}
|
|
|
|
public RetryPolicy(RetryCondition retryCondition, BackoffStrategy backoffStrategy, int i, boolean z) {
|
|
retryCondition = retryCondition == null ? PredefinedRetryPolicies.DEFAULT_RETRY_CONDITION : retryCondition;
|
|
backoffStrategy = backoffStrategy == null ? PredefinedRetryPolicies.DEFAULT_BACKOFF_STRATEGY : backoffStrategy;
|
|
if (i < 0) {
|
|
throw new IllegalArgumentException("Please provide a non-negative value for maxErrorRetry.");
|
|
}
|
|
this.retryCondition = retryCondition;
|
|
this.backoffStrategy = backoffStrategy;
|
|
this.maxErrorRetry = i;
|
|
this.honorMaxErrorRetryInClientConfig = z;
|
|
}
|
|
}
|