Class TweetsProducer

java.lang.Object
tweetoscope.tweetsProducer.TweetsProducer
All Implemented Interfaces:
Runnable, Flow.Publisher<com.twitter.clientlib.model.Tweet>
Direct Known Subclasses:
OfflineTweetsProducer, OnlineTweetsProducer

public abstract class TweetsProducer extends Object implements Runnable, Flow.Publisher<com.twitter.clientlib.model.Tweet>
Introduces Tweets into the system. The Tweets might be crafted ones, Tweets read from an archive, or Tweets retrieved live from the Twitter API.
Author:
Virginie Galtier
  • Field Details

    • subscribers

      protected List<Flow.Subscriber<? super com.twitter.clientlib.model.Tweet>> subscribers
      List of objects to notify when a new Tweet is received (downstream components = TweetFilter)
  • Constructor Details

    • TweetsProducer

      public TweetsProducer()
  • Method Details

    • subscribe

      public void subscribe(Flow.Subscriber<? super com.twitter.clientlib.model.Tweet> subscriber)
      Specified by:
      subscribe in interface Flow.Publisher<com.twitter.clientlib.model.Tweet>