Package tweetoscope.tweetsProducer
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 Summary
Modifier and TypeFieldDescriptionprotected List
<Flow.Subscriber<? super com.twitter.clientlib.model.Tweet>> List of objects to notify when a new Tweet is received (downstream components = TweetFilter) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
subscribe
(Flow.Subscriber<? super com.twitter.clientlib.model.Tweet> subscriber)
-
Field Details
-
subscribers
List of objects to notify when a new Tweet is received (downstream components = TweetFilter)
-
-
Constructor Details
-
TweetsProducer
public TweetsProducer()
-
-
Method Details
-
subscribe
- Specified by:
subscribe
in interfaceFlow.Publisher<com.twitter.clientlib.model.Tweet>
-