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 Details

    • TwitterFriendshipsSupplierConfiguration

      public TwitterFriendshipsSupplierConfiguration()
  • Method Details

    • metadataStore

      @Bean @ConditionalOnMissingBean public org.springframework.integration.metadata.MetadataStore metadataStore()
    • cursor

      @Bean @ConditionalOnMissingBean public Cursor 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

      @Bean public Function<List<twitter4j.User>,List<twitter4j.User>> userDeduplicate(org.springframework.integration.metadata.MetadataStore metadataStore)
    • deduplicatedFriendsJsonSupplier

      @Bean public Supplier<Message<byte[]>> deduplicatedFriendsJsonSupplier(Function<List<twitter4j.User>,List<twitter4j.User>> userDeduplication, Supplier<List<twitter4j.User>> userRetriever, Function<Object,Message<byte[]>> managedJson)