code: public void setMaxRetryTimeMillis(long maxRetryTimeMillis) {
          if (this.httpClient instanceof DefaultHttpClient) {
              ((DefaultHttpClient) this.httpClient).setMaxRetryTimeMillis(maxRetryTimeMillis);
          }
          else
              throw new UnsupportedOperationException("Invalid operation for class " + this.httpClient.getClass());
      }
docs: Sets the max retry time if the HttpClient is an instance of DefaultHttpClient
  
  @param maxRetryTimeMillis max retry time