Class TwitterTrendFunctionConfiguration
java.lang.Object
org.springframework.cloud.fn.twitter.trend.TwitterTrendFunctionConfiguration
@Configuration
@EnableConfigurationProperties(TwitterTrendFunctionProperties.class)
@Import(TwitterConnectionConfiguration.class)
public class TwitterTrendFunctionConfiguration
extends Object
- Author:
- Christian Tzolov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclosestOrAvailableTrends
(TwitterTrendFunctionProperties properties, twitter4j.Twitter twitter) trend
(TwitterTrendFunctionProperties properties, twitter4j.Twitter twitter) twitterTrendFunction
(Function<Object, Message<byte[]>> managedJson, Function<Message<?>, twitter4j.Trends> trend, TwitterTrendFunctionProperties properties, Function<Message<?>, List<twitter4j.Location>> closestOrAvailableTrends)
-
Constructor Details
-
TwitterTrendFunctionConfiguration
public TwitterTrendFunctionConfiguration()
-
-
Method Details
-
trend
@Bean public Function<Message<?>,twitter4j.Trends> trend(TwitterTrendFunctionProperties properties, twitter4j.Twitter twitter) -
closestOrAvailableTrends
@Bean public Function<Message<?>,List<twitter4j.Location>> closestOrAvailableTrends(TwitterTrendFunctionProperties properties, twitter4j.Twitter twitter) -
twitterTrendFunction
-