Class HomeConsumerHandler

java.lang.Object
org.apache.camel.component.twitter.consumer.AbstractTwitterConsumerHandler
org.apache.camel.component.twitter.timeline.HomeConsumerHandler

public class HomeConsumerHandler extends AbstractTwitterConsumerHandler
Consumes the user's home timeline.
  • Constructor Details

    • HomeConsumerHandler

      public HomeConsumerHandler(TwitterEndpoint endpoint)
  • Method Details

    • doPoll

      protected List<twitter4j.v1.Status> doPoll() throws twitter4j.TwitterException
      Throws:
      twitter4j.TwitterException
    • doDirect

      protected List<twitter4j.v1.Status> doDirect() throws twitter4j.TwitterException
      Throws:
      twitter4j.TwitterException
    • pollConsume

      public List<org.apache.camel.Exchange> pollConsume() throws twitter4j.TwitterException
      Description copied from class: AbstractTwitterConsumerHandler
      Called by polling consumers during each poll. It needs to be separate from directConsume() since, as an example, to allow tweets to build up between polls.
      Specified by:
      pollConsume in class AbstractTwitterConsumerHandler
      Throws:
      twitter4j.TwitterException
    • directConsume

      public List<org.apache.camel.Exchange> directConsume() throws twitter4j.TwitterException
      Description copied from class: AbstractTwitterConsumerHandler
      Called by direct consumers.
      Specified by:
      directConsume in class AbstractTwitterConsumerHandler
      Throws:
      twitter4j.TwitterException