Class MockTwitterStreamScenario

All Implemented Interfaces:
Runnable, Flow.Publisher<com.twitter.clientlib.model.Tweet>

public final class MockTwitterStreamScenario extends OfflineTweetsProducer
Mimics the TwitterStreamSampleReaderSingleton class. To be used when the Twitter sampled stream rate limit is exceeded for instance. Creates and publishes a predefined set of Tweets.
Author:
Virginie Galtier
  • Constructor Details

    • MockTwitterStreamScenario

      public MockTwitterStreamScenario()
      Creates a MockTwitterStreamScenario.
  • Method Details

    • run

      public void run()
      Crafts a predefined set of Tweets and posts them to the Java Flow