KGH-12: Late binding for kafka etc
Resolves https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/issues/12 Support late binding for binders that don't inherently support it. Schedule attempts at 30 second intervals (default, configurable). `IllegalState` and `IllegalArgument` exceptions are fatal. Add test cases (mocks) to verify rebind after failure Docs Polishing - always use the setter on LateBinding Remove volatile from the fields since they are only accessed from synchronized methods.
This commit is contained in:
committed by
Soby Chacko
parent
21a2a84d86
commit
54abf564fd
@@ -1123,6 +1123,12 @@ The typical usage of this property is to be nested in a customized environment <
|
||||
+
|
||||
Default: false.
|
||||
|
||||
spring.cloud.stream.bindingRetryInterval::
|
||||
The interval (seconds) between retrying binding creation when, for example, the binder doesn't support late binding and the broker is down (e.g. Apache Kafka).
|
||||
Set to zero to treat such conditions as fatal, preventing the application from starting.
|
||||
+
|
||||
Default: 30
|
||||
|
||||
[[binding-properties]]
|
||||
=== Binding Properties
|
||||
|
||||
|
||||
Reference in New Issue
Block a user