--spring.cloud.stream.bindings.gather_in_0.content-type=text/plain+
--spring.cloud.stream.bindings.gather.in.0.content-type=text/plain
From 02950f9e355a2ce64d7558076150f0ef620d7602 Mon Sep 17 00:00:00 2001
From: buildmaster input - input - output - output -
<functionName> + in + <index><functionName> + .in. + <index><functionName> + out + <index><functionName> + .out. + <index>String.
So, for the above example the two input bindings will be gather_in_0 and gather_in_1 and for consistency the
-output binding also follows the same convention and is named gather_out_0.
So, for the above example the two input bindings will be gather.in.0 and gather.in.1 and for consistency the
+output binding also follows the same convention and is named gather.out.0.
Knowing that will allow you to set binding specific properties the same way you did with @StreamListener.
-For example, the following will override content-type for gather_in_0 binding:
gather.in.0 binding:
--spring.cloud.stream.bindings.gather_in_0.content-type=text/plain+
--spring.cloud.stream.bindings.gather.in.0.content-type=text/plain
Integer and produces two outputs (both of type String).
So, for the above example the input binding is gather_in_0 and the
-output bindings are gather_out_0 and gather_out_1.
So, for the above example the input binding is gather.in.0 and the
+output bindings are gather.out.0 and gather.out.1.
And you test it with the following code:
@@ -1382,16 +1382,16 @@ for functions with multiple inputs/outputs:input - <functionName> + in + <index>
input - <functionName> + .in. + <index>
output - <functionName> + out + <index>
output - <functionName> + .out. + <index>
This means that the above configuration will result in the following destination bindings:
-uppercase_in_0, uppercase_out_0, reverse_in_0 and reverse_out_0.
uppercase.in.0, uppercase.out.0, reverse.in.0 and reverse.out.0.
And you test it with the following code: