org.apache.camel.component.twitter.consumer.timeline
Class RetweetsConsumer

java.lang.Object
  extended by org.apache.camel.component.twitter.consumer.Twitter4JConsumer
      extended by org.apache.camel.component.twitter.consumer.timeline.RetweetsConsumer

public class RetweetsConsumer
extends Twitter4JConsumer

Consumes a user's tweets that have been retweeted


Field Summary
 
Fields inherited from class org.apache.camel.component.twitter.consumer.Twitter4JConsumer
lastId, te
 
Constructor Summary
RetweetsConsumer(TwitterEndpoint te)
           
 
Method Summary
 List<twitter4j.Status> directConsume()
          Called by direct consumers.
 List<twitter4j.Status> pollConsume()
          Called by polling consumers during each poll.
 
Methods inherited from class org.apache.camel.component.twitter.consumer.Twitter4JConsumer
checkLastId, setLastId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RetweetsConsumer

public RetweetsConsumer(TwitterEndpoint te)
Method Detail

pollConsume

public List<twitter4j.Status> pollConsume()
                                   throws twitter4j.TwitterException
Description copied from class: Twitter4JConsumer
Called by polling consumers during each poll. It needs to be separate from directConsume() since, as an example, streaming API polling allows tweets to build up between polls.

Specified by:
pollConsume in class Twitter4JConsumer
Throws:
twitter4j.TwitterException

directConsume

public List<twitter4j.Status> directConsume()
                                     throws twitter4j.TwitterException
Description copied from class: Twitter4JConsumer
Called by direct consumers.

Specified by:
directConsume in class Twitter4JConsumer
Throws:
twitter4j.TwitterException


Apache Camel