Skip to content

Commit

Permalink
feat: raccoon java client release (raystack#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
AkbaraliShaikh authored Dec 1, 2022
1 parent c85f014 commit d0c37da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions clients/java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Requirements

- [Gradle v5+](https://gradle.org/)
- [Gradle v7+](https://gradle.org/)
- [JDK 8+](https://openjdk.java.net/projects/jdk8/)


Expand All @@ -12,7 +12,7 @@
#### Gradle

```groovy
implementation group: 'io.odpf', name: 'raccoon', version: '0.1.5-rc'
implementation group: 'io.odpf', name: 'raccoon', version: '0.1.5'
```

#### Maven
Expand All @@ -21,7 +21,7 @@
<dependency>
<groupId>io.odpf</groupId>
<artifactId>racoon</artifactId>
<version>0.1.5-rc</version>
<version>0.1.5</version>
</dependency>
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,12 @@ private CloseableHttpClient getHttpClient() {

@Override
public boolean retryRequest(HttpResponse response, int executionCount, HttpContext context) {
LOGGER.warn("Retrying the http request, retry-count:{}, response-code:{}", executionCount,
response.getStatusLine().getStatusCode());
return executionCount < restConfig.getRetryMax()
&& response.getStatusLine().getStatusCode() != HttpStatusCodes.STATUS_CODE_OK;
if (executionCount < restConfig.getRetryMax() && response.getStatusLine().getStatusCode() != HttpStatusCodes.STATUS_CODE_OK) {
LOGGER.warn("Retrying the http request, retry-count:{}, response-code:{}", executionCount, response.getStatusLine().getStatusCode());
return true;
}

return false;
}

@Override
Expand Down

0 comments on commit d0c37da

Please sign in to comment.