Class TwitterFriendshipsSupplierConfiguration
java.lang.Object
org.springframework.cloud.fn.supplier.twitter.friendships.TwitterFriendshipsSupplierConfiguration
@Configuration
@EnableConfigurationProperties(TwitterFriendshipsSupplierProperties.class)
@Import(TwitterConnectionConfiguration.class)
public class TwitterFriendshipsSupplierConfiguration
extends Object
- Author:
- Christian Tzolov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncursor()
deduplicatedFriendsJsonSupplier
(Function<List<twitter4j.User>, List<twitter4j.User>> userDeduplication, Supplier<List<twitter4j.User>> userRetriever, Function<Object, Message<byte[]>> managedJson) followersSupplier
(TwitterFriendshipsSupplierProperties properties, twitter4j.Twitter twitter, Cursor cursorState) friendsSupplier
(TwitterFriendshipsSupplierProperties properties, twitter4j.Twitter twitter, Cursor cursorState) org.springframework.integration.metadata.MetadataStore
userDeduplicate
(org.springframework.integration.metadata.MetadataStore metadataStore)
-
Constructor Details
-
TwitterFriendshipsSupplierConfiguration
public TwitterFriendshipsSupplierConfiguration()
-
-
Method Details
-
metadataStore
@Bean @ConditionalOnMissingBean public org.springframework.integration.metadata.MetadataStore metadataStore() -
cursor
-
followersSupplier
@Bean @ConditionalOnProperty(name="twitter.friendships.source.type", havingValue="followers") public Supplier<List<twitter4j.User>> followersSupplier(TwitterFriendshipsSupplierProperties properties, twitter4j.Twitter twitter, Cursor cursorState) -
friendsSupplier
@Bean @ConditionalOnProperty(name="twitter.friendships.source.type", havingValue="friends") public Supplier<List<twitter4j.User>> friendsSupplier(TwitterFriendshipsSupplierProperties properties, twitter4j.Twitter twitter, Cursor cursorState) -
userDeduplicate
-
deduplicatedFriendsJsonSupplier
-