Skip to content

Commit b5b8b30

Browse files
committed
GH-3071 Add documentation for accessing producer/consumer properties
Resolves #3071
1 parent dc3669b commit b5b8b30

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/modules/ROOT/pages/spring-cloud-stream/binding_visualization_control.adoc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,21 @@ bindingsController.changeState("echo-in-0", State.STOPPED);
2323
assertThat(binding.isRunning()).isFalse();
2424
----
2525

26+
27+
Additionally, starting version 4.2 you can also get access to Consumer and Producer configuration properties for more dynamic management of its values.
28+
You can request such properties from `BindingsLifecycleController` based on the binding name.
29+
For example.
30+
31+
[source,java]
32+
----
33+
KafkaConsumerProperties properties = controller.getExtensionProperties("log-in-0”);
34+
RabbitProducerProperties properties = controller.getExtensionProperties(“log-out-0”);
35+
----
36+
37+
The `getExtensionProperties(..)` operation is defined to ensure you get the proper type of the configuration properties class.
38+
39+
NOTE: Depending on the type of property you change, you may need to re-start the binding for it to take effect (ass seen earlier)
40+
2641
[[actuator]]
2742
== Actuator
2843
Since actuator and web are optional, you must first add one of the web dependencies as well as add the actuator dependency manually.

0 commit comments

Comments
 (0)