Commit Graph

230 Commits

Author SHA1 Message Date
Gary Russell
8adb079bbf Fix Javadocs for ExponentialBackOffPolicy
Resolves https://github.com/spring-projects/spring-retry/issues/210
2020-06-18 10:23:31 -04:00
Oscar Arellano
cfabf26c41 Fix NPE when circuit break attriute is not set 2020-06-09 13:19:37 -04:00
Dimitrios Liapis
f3ccdb298a Fix Readme.md formatting issue 2020-06-02 12:03:59 -04:00
Dave Syer
d36bd6d3bd Revert to snapshot 2020-05-19 11:23:33 +01:00
Dave Syer
fee59a15ed Bump to 1.3.0.RELEASE 2020-05-19 11:23:09 +01:00
Dave Syer
471b6e6f30 Add ignores for VSCode 2020-05-19 11:09:48 +01:00
Jay Bryant
7b8dae8e93 Editing pass
Edited for spelling, punctuation, usage, and corporate voice.
Also added an external link and a cross-reference.
2020-05-18 10:04:58 +00:00
Aaron Lucia
8f3ceedd29 Support @Recovery method that is not defined in interface 2020-04-07 18:48:12 +01:00
Dave Syer
4fe92bb20f Restore missing method call from merge in #124 2020-04-07 06:25:45 +01:00
Gary Russell
f54db742f5 Find @CircuitBreaker on target class w/ JDK proxy 2020-04-03 15:44:46 +01:00
Gary Russell
7d5d086a33 Find @Recover on target class with JDK proxy
Similar to https://github.com/spring-projects/spring-retry/pull/37

`@Recover` is only detected on interfaces for JDK proxies whereas
`@Retryable` is found on the target class if not on the interface.
2020-04-03 15:44:46 +01:00
Gary Russell
b949944a1b Support positional RetryListeners
- useful when framework code needs to add a listener before user
  listeners.
2020-04-03 12:07:37 +01:00
krolen
54e1998ede Cherry pick from 1.2.x 2020-02-01 11:42:02 +00:00
Dave Syer
13ae03c621 Formatting 2020-01-20 11:37:20 +00:00
Dave Syer
0f1eb43f59 Clarify partial lost of method arguments
Fixes #190
2020-01-20 11:37:20 +00:00
Tine Kondo
bb08750940 feat(Retryable): allow composing Retryable annotation by using AnnotatedElementUtils.findMergedAnnotation in AnnotationAwareRetryOperationsInterceptor 2020-01-20 11:05:58 +00:00
kitaisreal
c12bf15134 GH-85: Allow recover by name in the @Retryable
Fixes https://github.com/spring-projects/spring-retry/issues/85

* Added recover name in `Retryable` annotation.
Added name in Recover annotation.
Updated tests.

* Removed unneccessary parameter name from Recover annotation

* Updated entry iteration.
Updated Copyrights.
Added more explicit documentation.

* Updated javadoc.
Updated Readme.

* Fixed Readme

* Fixed tabs.
Updated javadoc.
2019-11-11 16:41:42 -05:00
Chase Diem
ff4535fecf GH-126: ExpRandomBackOffPolicy: fix maxInterval
Fixes https://github.com/spring-projects/spring-retry/issues/126

The `ExponentialRandomBackOffPolicy` doesn't take into account a `maxInterval` for the next `sleep`
causing a very long sleep problem eventually

* Fallback to `super.getMaxInterval()` when `next` from random is too big
* Fix JavaDocs for ranges
* Add test for `maxInterval`
2019-10-22 11:02:57 -04:00
Jay Bryant
5a1a3bfbf3 Editing pass
I edited for spelling, puncutation, grammar, usage, and corporate voice.
2019-09-06 10:04:56 +01:00
Dave Syer
baba3fa658 Attempt to build on Java 11 (failed) 2019-06-07 12:38:13 +01:00
Dave Syer
995d1a6884 Apply formatter 2019-06-07 12:33:13 +01:00
Dave Syer
a717e47043 Allow SubclassClassifier to work with interfaces
Up to now it only traversed superclasses. Now it looks at the
interfaces as well.
2019-06-07 12:28:36 +01:00
Dave Syer
73568416a8 Fix counting errors in args matchers for recovery
There were off-by-one errors in the recovery argument matching,
and also in the copying of arguments from source to target method.

Fixes gh-169
2019-06-07 12:26:11 +01:00
Dave Syer
8382f73a55 Better link in CI badge 2019-05-31 10:06:58 +01:00
Dave Syer
01abf7bd6e Add badges 2019-05-30 17:10:13 +01:00
Dave Syer
a8651f0ddb Add convenience method to SubclassClassifier 2019-05-30 14:52:14 +01:00
Nathanaël Roberts
0f9a918f3c Fix bug when there are multiple recover methods
...and a potential inheritance with argument types like List.

Fixes #174
2019-05-28 10:29:16 +01:00
Alexander Shamukov
c7174c9ee5 Readme for fluent template configuration
* Heading style fix
2019-05-18 09:02:36 -04:00
Marius Grama
e2b0555f96 Updated the Copyright header. 2019-04-23 08:23:21 +01:00
Marius Grama
07800ee870 Code cosmetics 2019-04-23 08:23:21 +01:00
Marius Grama
7cf90bff00 Removed reference to hamcrest-all test library, and modified the tests from RetryOperationsInterceptorTests to use vanilla junit assertions. 2019-04-23 08:23:21 +01:00
Marius Grama
b599c23404 Expose the MethodInvocation in the MethodInvocationRetryCallback in order to permit to concrete RetryListener implementations to inspect in detail the method called as well as its arguments. This information can be used in the retry listener for either detailed logging or monitoring for the proxied method invocations. 2019-04-23 08:23:21 +01:00
Dave Syer
c530b686b0 Fix some compiler warnings 2019-04-02 10:49:48 +01:00
Aldo Sinanaj
2a6cd8b447 GH-89: Deprecate templated expressions
Fixes https://github.com/spring-projects/spring-retry/issues/89

* Use literal expressions also for other expression properties
* Revert changes as suggested in the comments
* Updated copyright
* Polishing code style
* Fix JavaDoc in the `RetryTemplateBuilder`
2019-03-27 12:18:39 -04:00
Spring Operator
29adacdeba URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 140 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
2019-03-26 09:05:50 +00:00
Spring Operator
c5eec9777d URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://contributor-covenant.org with 1 occurrences migrated to:
  https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301).
* [ ] http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to:
  https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301).
2019-03-26 09:05:20 +00:00
Javier Eguiluz
e538399d75 Fixed a typo in a comment 2019-03-20 17:17:21 +00:00
Dave Syer
7d3ad70fa1 Update to 1.3 snapshots 2019-03-20 17:15:41 +00:00
Dave Syer
01d850ef28 Polish 2019-03-20 17:12:07 +00:00
Dave Syer
84e906fbe6 Apply format plugin 2019-03-20 17:12:07 +00:00
Aleksandr Shamukov
0a1c3cb3c1 Fluent API for RetryTemplate configuration
Fixes gh-153
2019-03-20 17:11:29 +00:00
Spring Operator
6673b6214a URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* http://www.springframework.org/schema/aop/spring-aop-2.0.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/aop/spring-aop-2.0.xsd ([https](https://www.springframework.org/schema/aop/spring-aop-2.0.xsd) result 200).
* http://www.springframework.org/schema/beans/spring-beans-2.0.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/beans/spring-beans-2.0.xsd ([https](https://www.springframework.org/schema/beans/spring-beans-2.0.xsd) result 200).
* http://www.springframework.org/schema/tx/spring-tx-2.0.xsd with 1 occurrences migrated to:
  https://www.springframework.org/schema/tx/spring-tx-2.0.xsd ([https](https://www.springframework.org/schema/tx/spring-tx-2.0.xsd) result 200).
* http://maven.apache.org/maven-v4_0_0.xsd with 1 occurrences migrated to:
  https://maven.apache.org/maven-v4_0_0.xsd ([https](https://maven.apache.org/maven-v4_0_0.xsd) result 301).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0 with 2 occurrences
* http://www.springframework.org/schema/aop with 2 occurrences
* http://www.springframework.org/schema/beans with 2 occurrences
* http://www.springframework.org/schema/p with 1 occurrences
* http://www.springframework.org/schema/tx with 2 occurrences
* http://www.w3.org/2001/XMLSchema-instance with 2 occurrences
2019-03-20 16:51:18 +00:00
Zhang Chao
2f4386d8b7 Align default delay in code to value in document
Fixes gh-146
2019-03-07 10:40:01 +00:00
Neil Brown
8bef15de04 Document @Retryable's additional runtime dependency and advice on how it's best resolved. (Also fix broken link to contributor's agreement) 2019-03-06 02:51:33 -05:00
Kevin Off
328f510ccf Fixed issue for multiple recovery methods creating an ArrayIndexOutOfBoundsException. Fixed #145 2019-03-06 02:30:01 -05:00
Spring Operator
f400fe7fbe URL Cleanup
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

# Fixed URLs

## Fixed Success
These URLs were fixed successfully.

* http://github.com/spring-projects/spring-retry migrated to:
  https://github.com/spring-projects/spring-retry ([https](https://github.com/spring-projects/spring-retry) result 200).
* http://www.apache.org/licenses/LICENSE-2.0 migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).
* http://www.apache.org/licenses/LICENSE-2.0.txt migrated to:
  https://www.apache.org/licenses/LICENSE-2.0.txt ([https](https://www.apache.org/licenses/LICENSE-2.0.txt) result 200).
* http://www.springsource.com migrated to:
  https://www.springsource.com ([https](https://www.springsource.com) result 301).
* http://www.springsource.org migrated to:
  https://www.springsource.org ([https](https://www.springsource.org) result 301).
* http://www.springsource.com/download/community migrated to:
  https://www.springsource.com/download/community ([https](https://www.springsource.com/download/community) result 302).

# Ignored
These URLs were intentionally ignored.

* http://maven.apache.org/POM/4.0.0
* http://maven.apache.org/maven-v4_0_0.xsd
* http://www.w3.org/2001/XMLSchema-instance
2019-03-06 02:29:27 -05:00
Dave Syer
0753e4ee45 Revert to snapshots 2019-01-16 08:03:15 +00:00
Dave Syer
ff0f33b142 Revert to Spring 4.3
See gh-114
2019-01-16 08:01:55 +00:00
Dave Syer
976abd4d2b Revert to snapshots 2019-01-11 11:52:17 +00:00
Dave Syer
a3593c7e7f Update to 1.2.3 2019-01-11 11:49:14 +00:00