Fix typo in docs replacing FunctionRoutingResult to String in MessageRoutingCallback
This commit is contained in:
committed by
GitHub
parent
bdd0c417ac
commit
23a69512df
@@ -33,7 +33,7 @@ import org.springframework.messaging.Message;
|
|||||||
public interface MessageRoutingCallback {
|
public interface MessageRoutingCallback {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Computes and returns the instance of {@link FunctionRoutingResult} which encapsulates,
|
* Computes and returns the instance of {@link String} which encapsulates,
|
||||||
* at the very minimum, function definition.
|
* at the very minimum, function definition.
|
||||||
* <br><br>
|
* <br><br>
|
||||||
* Providing such message is primarily an optimization feature. It could be useful for cases
|
* Providing such message is primarily an optimization feature. It could be useful for cases
|
||||||
@@ -42,7 +42,7 @@ public interface MessageRoutingCallback {
|
|||||||
* message for downstream use didn't exist, resulting in repeated transformation, type conversion etc.
|
* message for downstream use didn't exist, resulting in repeated transformation, type conversion etc.
|
||||||
*
|
*
|
||||||
* @param message input message
|
* @param message input message
|
||||||
* @return instance of {@link FunctionRoutingResult} containing the result of the routing computation
|
* @return instance of {@link String} containing the result of the routing computation
|
||||||
*/
|
*/
|
||||||
default String routingResult(Message<?> message) {
|
default String routingResult(Message<?> message) {
|
||||||
return (String) message.getHeaders().get(FunctionProperties.FUNCTION_DEFINITION);
|
return (String) message.getHeaders().get(FunctionProperties.FUNCTION_DEFINITION);
|
||||||
|
|||||||
Reference in New Issue
Block a user