Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: raccoon java client release #54

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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