We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1918be commit bdd0c41Copy full SHA for bdd0c41
docs/modules/ROOT/pages/spring-cloud-function/programming-model.adoc
@@ -195,8 +195,9 @@ The `MessageRoutingCallback` is a strategy to assist with determining the name o
195
[source, java]
196
----
197
public interface MessageRoutingCallback {
198
- FunctionRoutingResult routingResult(Message<?> message);
199
- . . .
+ default String routingResult(Message<?> message) {
+ return (String) message.getHeaders().get("spring.cloud.function.definition");
200
+ }
201
}
202
203
@@ -739,4 +740,4 @@ private final static JsonMasker masker = JsonMasker.INSTANCE();
739
740
. . .
741
742
logger.info("Received: " + masker.mask(new String(payload, StandardCharsets.UTF_8)));
-----
743
+----
0 commit comments