269 Commits

Author SHA1 Message Date
Stephane Nicoll
e7ae299059 Local test 2022-03-01 19:02:41 +01:00
Stephane Nicoll
748e72660f Move CI to Concourse 2022-02-27 18:20:56 +01:00
Stephane Nicoll
042711e4b9 Remove Maven warnings
This commit removes the warnings that Maven emits when building the
effective model of the project. This boils down to locking down plugin
versions.

Because there is no version for javaformat, Maven could decide to use
the latest, which requires extra care to build with Java 8. This commit
upgrades explicitly to the latest and configure it to be compatible
with Java 8
2022-02-22 14:59:38 -05:00
Stéphane Nicoll
0b802a60d9 Do not apply Javaformat by default
* Do not apply javaformat by default

This commit removes the invocation of spring-javaformat:apply by
default. Doing so makes the validate goal irrelevant as apply is
going to reformat the code if necessary.

The idea of the plugin is that it should prevent you from pushing
something that has formatting violations. Running the build, run the
apply goal manually, and amending the commit is the idiomatic way of
using this plugin.

* Apply formatting
2022-02-22 14:29:20 -05:00
Stephane Nicoll
79a0eea1ee Specify file source encoding 2022-02-22 14:28:16 -05:00
Davide Pugliese
3ad812ac80 Add randomExpression to backoff annotation 2022-02-16 14:28:05 -05:00
Gary Russell
dd819b4eec Annotation Expression Improvements
- remove unnecessary template delimiters from tests
- make expression handling consistent
  - template delimiters should not be needed for any
  - fix bean resolution in `@BackOff`
2022-01-24 15:32:57 -05:00
Gary Russell
060a99ad86 Switch to Log4j2 for Tests 2022-01-24 11:38:15 -05:00
Kim In Hoi
2514e178b0 Fix indents in the RetryTemplateBuilderTest 2022-01-19 11:55:08 -05:00
Kim In Hoi
f107a77cda GH-254: Add RetryTemplBuilder.(not)RetryOn(List)
Fixes https://github.com/spring-projects/spring-retry/issues/254

Add method with list parameter by overloading existed method
2022-01-18 11:09:43 -05:00
Markus Heiden
2eb162a59d GH-256: Mark RetryConfiguration as infrastructure bean
Fixes: https://github.com/spring-projects/spring-retry/issues/256

This suppresses the info message "Bean 'org.springframework.retry.annotation.RetryConfiguration' of type [org.springframework.retry.annotation.RetryConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)" during the Spring context start.

* Avoid static import, fix copyright year, add author
2022-01-14 15:22:29 -05:00
Arnaud Hoareau
6c59c0db38 Fix typos in Backoff JavaDocs 2021-10-21 12:09:12 -04:00
Dave Syer
ebc720045f Make annotation API explicitly optional 2021-06-14 14:43:01 +01:00
Gary Russell
e50babab8f Add container_limits to pipeline.yml
Flying the pipeline with the harbor cache changes reported these lines
would be deleted.
2021-06-10 12:37:40 -04:00
Gary Russell
e5a48ee48c Use Harbor for Concourse Pipeline 2021-06-09 16:20:09 -04:00
Gary Russell
83a73d0cc8 GH-244: Invoke Proxy for @Recover Method
Resolves https://github.com/spring-projects/spring-retry/issues/244

The `RecoverAnnotationRecoveryHandler` only has access to the undecorated
raw bean.

Use the `RetryContext` to make the proxy (if CGLIB) available to the recoverer.

* Move cleanup to a finally block.

* Support JDK proxies too.

* Add CGLib proxy test; JDK proxies are covered by existing tests.
2021-06-07 13:34:33 -04:00
Gary Russell
e637911a8a SimpleRetryPolicy Javadoc Polishing 2021-05-05 17:16:13 -04:00
dependabot[bot]
e7352441c9 Bump spring-framework-bom from 4.3.22.RELEASE to 4.3.29.RELEASE
Bumps [spring-framework-bom](https://github.com/spring-projects/spring-framework) from 4.3.22.RELEASE to 4.3.29.RELEASE.
- [Release notes](https://github.com/spring-projects/spring-framework/releases)
- [Commits](https://github.com/spring-projects/spring-framework/compare/v4.3.22.RELEASE...v4.3.29.RELEASE)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-30 16:29:16 -04:00
Matthias Merdes
8335f7f531 Fix typo in the @Retryable JavaDocs 2021-04-23 08:01:00 -04:00
Gary Russell
7692782d37 GH-237: Fix Multiple RetryListeners for @Retryable
Resolves https://github.com/spring-projects/spring-retry/issues/237

- also don't include non-singletons or perform eager inits
- `spring-javaformat` has reformatted some other code

* Update main branch name in README.

* Fix `getBeansOfType()`.
2021-04-20 14:53:09 -04:00
Tomaz Fernandes
5bdad2fe54 GH-234: UniRndBackOffPolicy: Propagate maxPeriod
Fixes https://github.com/spring-projects/spring-retry/issues/234

Currently `UniformRandomBackOffPolicy` loses `maxBackOffPeriod` when `withSleeper` is used

* Propagate `maxBackOffPeriod` into a new `UniformRandomBackOffPolicy` instance produced
by the `withSleeper(Sleeper)` API
2021-03-16 10:59:18 -04:00
Gary Russell
65377ea778 Fix since in javadoc 2021-03-09 17:06:53 -05:00
Gary Russell
fdfd541ddf Fix typo in README 2021-03-09 17:03:41 -05:00
Gary Russell
ae3ad4a249 Docs and test polishing for previous commit 2021-03-09 16:48:21 -05:00
deepesh-verma
4d2bb2be27 Add generic check for function return type
Fixes: [#215](https://github.com/spring-projects/spring-retry/issues/215)
Signed-off-by: deepesh-verma <deepeshvrm1@gmail.com>
2021-03-09 16:47:01 -05:00
Dave Syer
c452ec3237 Revert to snapshots 2021-01-08 17:43:43 +00:00
Dave Syer
2e048d7621 Bump for 1.3.1 2021-01-08 17:42:35 +00:00
Dave Syer
c0f66e9f59 Make spring-core optional
It isn't really optional, but no-one uses Spring Retry without it
and some older build systems (Gradle old versions) don't like finding
multiple versions of thw same library.
2021-01-08 17:31:20 +00:00
Mark Amans
6e3fce32b5 used AnnotationUtils so that retryable name can come from interface annotation. 2020-10-19 11:14:13 +01:00
Dave Syer
62d7bfefb6 Non-reflective lazy initialization in @RetryConfiguration 2020-10-19 09:40:42 +01:00
Gary Russell
b073ab4cf7 Merge pull request #221 from spring-projects/dependabot/maven/junit-junit-4.13.1
Bump junit from 4.12 to 4.13.1
2020-10-13 16:03:55 -04:00
dependabot[bot]
e747fdb9c1 Bump junit from 4.12 to 4.13.1
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 09:47:25 +00:00
Torben Möller
048238e286 Fixed wording 2020-09-22 15:56:44 +01:00
Dave Syer
14d807e467 Fix mvnw script for new version format 2020-09-10 07:48:54 +01:00
Gary Russell
868d205969 Fix javadoc typo 2020-08-28 10:01:20 -04:00
Gary Russell
71744ee8cb More Javadoc polishing: ExponentialBackOffPolicy
Resolves https://github.com/spring-projects/spring-retry/issues/210
2020-08-25 11:15:44 -04:00
wojciech.piotrowiak
f25d6e8ff4 test change to show difference before and after fix 2020-07-14 10:19:00 +01:00
wojciech.piotrowiak
109d9f9818 New unit test that verify resetTimeout behaviour 2020-07-14 10:19:00 +01:00
wojciech.piotrowiak
6c97e9f112 Changing it to set the timer only when the circuit first goes open 2020-07-14 10:19:00 +01:00
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