Class MentionsConsumerHandler
- java.lang.Object
-
- org.apache.camel.component.twitter.consumer.AbstractTwitterConsumerHandler
-
- org.apache.camel.component.twitter.timeline.MentionsConsumerHandler
-
public class MentionsConsumerHandler extends AbstractTwitterConsumerHandler
Consumes tweets in which the user has been mentioned.
-
-
Field Summary
-
Fields inherited from class org.apache.camel.component.twitter.consumer.AbstractTwitterConsumerHandler
endpoint, log
-
-
Constructor Summary
Constructors Constructor Description MentionsConsumerHandler(TwitterEndpoint endpoint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.apache.camel.Exchange>
directConsume()
Called by direct consumers.protected List<twitter4j.Status>
doDirect()
protected List<twitter4j.Status>
doPoll()
List<org.apache.camel.Exchange>
pollConsume()
Called by polling consumers during each poll.-
Methods inherited from class org.apache.camel.component.twitter.consumer.AbstractTwitterConsumerHandler
getLastId, getLastIdPaging, getTwitter, setLastId, setLastIdIfGreater
-
-
-
-
Constructor Detail
-
MentionsConsumerHandler
public MentionsConsumerHandler(TwitterEndpoint endpoint)
-
-
Method Detail
-
doPoll
protected List<twitter4j.Status> doPoll() throws twitter4j.TwitterException
- Throws:
twitter4j.TwitterException
-
doDirect
protected List<twitter4j.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 classAbstractTwitterConsumerHandler
- 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 classAbstractTwitterConsumerHandler
- Throws:
twitter4j.TwitterException
-
-