Class GetServerErrorRetryStrategy

java.lang.Object
com.gooddata.sdk.service.retry.GetServerErrorRetryStrategy
All Implemented Interfaces:
RetryStrategy

public class GetServerErrorRetryStrategy extends Object implements RetryStrategy
Allows retry for GET method and some HTTP 5XX states mentioned in RETRYABLE_STATES.
  • Field Details

  • Constructor Details

    • GetServerErrorRetryStrategy

      public GetServerErrorRetryStrategy()
  • Method Details

    • retryAllowed

      public boolean retryAllowed(String method, int statusCode, URI uri)
      Description copied from interface: RetryStrategy
      Method says if retry is allowed for given parameter combination.
      Specified by:
      retryAllowed in interface RetryStrategy
      Parameters:
      method - HTTP method
      statusCode - HTTP response code
      uri - requested URL
      Returns:
      true it retry is allowed