public class TierObjectStoreLinearRetry extends Object implements TierObjectStoreRetryPolicy
TierObjectStoreRetryPolicy.RetryInfo
Constructor and Description |
---|
TierObjectStoreLinearRetry(int maxRetryCount,
long retryInterval) |
Modifier and Type | Method and Description |
---|---|
TierObjectStoreRetryPolicy.RetryInfo |
shouldRetry(Exception exception,
int currentRetryCount) |
public TierObjectStoreLinearRetry(int maxRetryCount, long retryInterval)
public TierObjectStoreRetryPolicy.RetryInfo shouldRetry(Exception exception, int currentRetryCount)
shouldRetry
in interface TierObjectStoreRetryPolicy
exception
- The exception that failed the operation.currentRetryCount
- The number of times the operation has been attempted (not including the next attempt).