Address twitter review suggestions

This commit is contained in:
Christian Tzolov
2020-06-24 09:58:26 +02:00
parent bd48ead4e6
commit 9792768d55
24 changed files with 46 additions and 454 deletions

View File

@@ -19,7 +19,7 @@ You can import the `TwitterTrendFunctionConfiguration` in a Spring Boot applicat
`filterFunction`
You can use `Function<Message<?>, Message<byte[]>> trendOrTrendLocationsFunction` as a qualifier when injecting.
You can use `Function<Message<?>, Message<byte[]>> twitterTrendFunction` as a qualifier when injecting.
Once injected, you can use the `apply` method of the `Function` to invoke it and get the result.

View File

@@ -80,7 +80,7 @@ public class TwitterTrendFunctionConfiguration {
}
@Bean
public Function<Message<?>, Message<byte[]>> trendOrTrendLocationsFunction(
public Function<Message<?>, Message<byte[]>> twitterTrendFunction(
Function<Object, Message<byte[]>> managedJson, Function<Message<?>, Trends> trend,
TwitterTrendFunctionProperties properties, Function<Message<?>,
List<Location>> closestOrAvailableTrends) {