Class TwitterUsersFunctionConfiguration
java.lang.Object
org.springframework.cloud.fn.twitter.users.TwitterUsersFunctionConfiguration
@Configuration
@EnableConfigurationProperties(TwitterUsersFunctionProperties.class)
@Import(TwitterConnectionConfiguration.class)
public class TwitterUsersFunctionConfiguration
extends Object
- Author:
- Christian Tzolov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontwitterUsersFunction
(Function<Message<?>, List<twitter4j.User>> queryUsers, Function<Object, Message<byte[]>> managedJson) userLookup
(twitter4j.Twitter twitter, TwitterUsersFunctionProperties properties) userSearch
(twitter4j.Twitter twitter, TwitterUsersFunctionProperties properties)
-
Constructor Details
-
TwitterUsersFunctionConfiguration
public TwitterUsersFunctionConfiguration()
-
-
Method Details
-
userSearch
@Bean @ConditionalOnProperty(name="twitter.users.type", havingValue="search") public Function<Message<?>,List<twitter4j.User>> userSearch(twitter4j.Twitter twitter, TwitterUsersFunctionProperties properties) -
userLookup
@Bean @ConditionalOnProperty(name="twitter.users.type", havingValue="lookup") public Function<Message<?>,List<twitter4j.User>> userLookup(twitter4j.Twitter twitter, TwitterUsersFunctionProperties properties) -
twitterUsersFunction
-