fixing whcih typo

This commit is contained in:
salaboy
2022-02-03 09:29:46 +00:00
parent 9fcf6f8db8
commit a3b4e92137
2 changed files with 3 additions and 3 deletions

View File

@@ -197,7 +197,7 @@ public class RoutingFunction implements Function<Object, Object> {
Assert.hasText(functionName, "Failed to resolve function name based on routing expression '" + functionProperties.getRoutingExpression() + "'"); Assert.hasText(functionName, "Failed to resolve function name based on routing expression '" + functionProperties.getRoutingExpression() + "'");
FunctionInvocationWrapper function = functionCatalog.lookup(functionName); FunctionInvocationWrapper function = functionCatalog.lookup(functionName);
Assert.notNull(function, "Failed to lookup function to route to based on the expression '" Assert.notNull(function, "Failed to lookup function to route to based on the expression '"
+ functionProperties.getRoutingExpression() + "' whcih resolved to '" + functionName + "' function name."); + functionProperties.getRoutingExpression() + "' which resolved to '" + functionName + "' function name.");
if (logger.isInfoEnabled()) { if (logger.isInfoEnabled()) {
logger.info("Resolved function from provided [routing-expression] " + routingExpression); logger.info("Resolved function from provided [routing-expression] " + routingExpression);
} }

View File

@@ -49,7 +49,7 @@ payload via `data` operation. Then we use one of the `retrieve` operations that
As you can see from the preceding examples, we provide function definition as a value to `route(..)` operator of `RSocketRequester.Builder`. As you can see from the preceding examples, we provide function definition as a value to `route(..)` operator of `RSocketRequester.Builder`.
However that is not the only way. You can also use standard `spring.cloud.function.definition` property as well as `spring.cloud.function.routing-expression` or property or `MessageRoutingCallback` on the server side of the RSocket interaction (see "Function Routing and Filtering" section of reference manual). However that is not the only way. You can also use standard `spring.cloud.function.definition` property as well as `spring.cloud.function.routing-expression` or property or `MessageRoutingCallback` on the server side of the RSocket interaction (see "Function Routing and Filtering" section of reference manual).
This raises a question of _order_ and _priorities_ when it comes to reconsiling a conflict in the event several ways of providing definition are used. So it is a mater of clearly stating the rule whcih is: This raises a question of _order_ and _priorities_ when it comes to reconsiling a conflict in the event several ways of providing definition are used. So it is a mater of clearly stating the rule which is:
***1 - MessageRoutingCallback*** ***1 - MessageRoutingCallback***
The `MessageRoutingCallback` takes precedence over all other ways of providing function definition resolution. The `MessageRoutingCallback` takes precedence over all other ways of providing function definition resolution.