Package tweetoscope.tweetsProducer
Class MockTwitterStreamScenario
java.lang.Object
tweetoscope.tweetsProducer.TweetsProducer
tweetoscope.tweetsProducer.OfflineTweetsProducer
tweetoscope.tweetsProducer.MockTwitterStreamScenario
- All Implemented Interfaces:
Runnable
,Flow.Publisher<com.twitter.clientlib.model.Tweet>
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
-
Field Summary
Fields inherited from class tweetoscope.tweetsProducer.TweetsProducer
subscribers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Crafts a predefined set of Tweets and posts them to the Java FlowMethods inherited from class tweetoscope.tweetsProducer.TweetsProducer
subscribe
-
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
-