Package tweetoscope.tweetsProducer
Class MockTwitterStreamRandom
java.lang.Object
tweetoscope.tweetsProducer.TweetsProducer
tweetoscope.tweetsProducer.OfflineTweetsProducer
tweetoscope.tweetsProducer.MockTwitterStreamRandom
- 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 a
continuous stream of random Tweets.
- Author:
- Virginie Galtier
-
Field Summary
Fields inherited from class tweetoscope.tweetsProducer.TweetsProducer
subscribers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Posts random Tweets to theinvalid reference
distributed_tweetoscope.TweetoscopeAppConfig#TWEETS_TOPIC_NAME
Methods inherited from class tweetoscope.tweetsProducer.TweetsProducer
subscribe
-
Constructor Details
-
MockTwitterStreamRandom
public MockTwitterStreamRandom()Creates a new MockTwitterStreamRandom.
-
-
Method Details
-
run
public void run()Posts random Tweets to theinvalid reference
distributed_tweetoscope.TweetoscopeAppConfig#TWEETS_TOPIC_NAME
-