Skip to content

Commit

Permalink
release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dk900912 committed Aug 6, 2022
1 parent b1f73d1 commit 0bd0dae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ RetryTemplate retryTemplate = RetryTemplate.builder()
.retryOn(IllegalArgumentException.class)
.build();
retryTemplate.execute(callback);
```
```
### You are welcome to enjoy it
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.dk900912</groupId>
<artifactId>easy-retry</artifactId>
<version>1.0</version>
<version>1.0.0</version>

<name>easy-retry</name>
<description>easy java retry framework</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public void setRetryPolicy(RetryPolicy retryPolicy) {
this.retryPolicy = retryPolicy;
}


@Override
public final <T, E extends Throwable> T execute(RetryCallback<T, E> retryCallback) throws E {
return doExecute(retryCallback);
Expand Down Expand Up @@ -83,9 +82,9 @@ private <T, E extends Throwable> T doExecute(RetryCallback<T, E> retryCallback)
} catch (Throwable e) {
throw RetryTemplate.<E>wrapIfNecessary(e);
} finally {
logger.info("0={===> {} <===}=0", context);
close(retryPolicy, context);
RetrySynchronizationManager.clear();
logger.info("0={===> {} <===}=0", context);
}
}

Expand Down

0 comments on commit 0bd0dae

Please sign in to comment.