PartnerServiceRetryStrategy Class

  • java.lang.Object
    • com.microsoft.rest.retry.RetryStrategy
      • com.microsoft.store.partnercenter.network.PartnerServiceRetryStrategy

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

com.microsoft.rest.retry.RetryStrategy.isFastFirstRetry() com.microsoft.rest.retry.RetryStrategy.name() com.microsoft.rest.retry.RetryStrategy.shouldRetry(int,okhttp3.Response) java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

PartnerServiceRetryStrategy

public PartnerServiceRetryStrategy(int maxRetryAttempts)

Initializes a new instance of the PartnerServiceRetryStrategy class.

Parameters:

maxRetryAttempts - The maximum number of retry attempts.

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:

retryCount - The current retry attempt count.
response - The exception that caused the retry conditions to occur.

Returns:

true if the request should be retried; false otherwise.

Applies to