GH-1511 Polishing and added tests

- Polished RetryTemplate changes from the previous commit
- Rebased with 2.2.x branch
- Added tests
- Updated author tags with original committer's name

Resolves #1511
Resolves #1588
This commit is contained in:
Oleg Zhurakousky
2019-02-04 06:51:19 +01:00
parent e9d22cb352
commit f01cb29b44
4 changed files with 150 additions and 19 deletions

View File

@@ -1054,6 +1054,15 @@ public RetryTemplate myRetryTemplate() {
----
As you can see from the above example you don't need to annotate it with `@Bean` since `@StreamRetryTemplate` is a qualified `@Bean`.
If you need to be more precise with your `RetryTemplate`, you can specify the bean by name in your `ConsumerProperties` to associate
the specific retry bean per binding.
[source]
----
spring.cloud.stream.bindings.<foo>.consumer.retry-template-name=<your-retry-template-bean-name>
----
[[spring-cloud-stream-overview-binders]]
== Binders