PartnerServiceRetryStrategy Class
- java.
lang. Object - com.
microsoft. rest. retry. RetryStrategy - com.
microsoft. store. partnercenter. network. PartnerServiceRetryStrategy
- com.
- com.
public class PartnerServiceRetryStrategy extends RetryStrategy
Represents a retry strategy that determines the number of retry attempts and the interval between retries.
Constructor Summary
| Constructor | Description |
|---|---|
| PartnerServiceRetryStrategy(int maxRetryAttempts) |
Initializes a new instance of the PartnerServiceRetryStrategy class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| boolean |
shouldRetry(int retryCount, Response response)
Returns if a request should be retried based on the retry count, current response, and the current strategy. |
Inherited Members
Constructor Details
PartnerServiceRetryStrategy
public PartnerServiceRetryStrategy(int maxRetryAttempts)
Initializes a new instance of the PartnerServiceRetryStrategy class.
Parameters:
Method Details
shouldRetry
public boolean shouldRetry(int retryCount, Response response)
Returns if a request should be retried based on the retry count, current response, and the current strategy.
Overrides:
PartnerServiceRetryStrategy.shouldRetry(int retryCount, Response response)Parameters:
Returns: