Package tweetoscope.tweetsProducer
Class MockTwitterStreamRecorded
java.lang.Object
tweetoscope.tweetsProducer.TweetsProducer
tweetoscope.tweetsProducer.OfflineTweetsProducer
tweetoscope.tweetsProducer.MockTwitterStreamRecorded
- 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. Replays Tweets
recorded previously from the Twitter API.
- Author:
- Virginie Galtier
-
Field Summary
Fields inherited from class tweetoscope.tweetsProducer.TweetsProducer
subscribers
-
Constructor Summary
ConstructorDescriptionMockTwitterStreamRecorded
(String fileName) Creates a MockTwitterStreamRecorded. -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Reads Tweets from a file and forwards them to the Java Flow subscribers.Methods inherited from class tweetoscope.tweetsProducer.TweetsProducer
subscribe
-
Field Details
-
fileName
File that holds the recorded Tweets
-
-
Constructor Details
-
MockTwitterStreamRecorded
Creates a MockTwitterStreamRecorded.
-
-
Method Details
-
run
public void run()Reads Tweets from a file and forwards them to the Java Flow subscribers.
-