|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.component.twitter.consumer.Twitter4JConsumer
public abstract class Twitter4JConsumer
Field Summary | |
---|---|
protected long |
lastId
The last tweet ID received. |
protected TwitterEndpoint |
te
Instance of TwitterEndpoint. |
Constructor Summary | |
---|---|
protected |
Twitter4JConsumer(TwitterEndpoint te)
|
Method Summary | |
---|---|
protected void |
checkLastId(long newId)
Can't assume that the end of the list will be the most recent ID. |
abstract List<? extends Serializable> |
directConsume()
Called by direct consumers. |
abstract List<? extends Serializable> |
pollConsume()
Called by polling consumers during each poll. |
void |
setLastId(long sinceId)
Support to update the Consumer's lastId when starting the consumer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TwitterEndpoint te
protected long lastId
Constructor Detail |
---|
protected Twitter4JConsumer(TwitterEndpoint te)
Method Detail |
---|
protected void checkLastId(long newId)
public abstract List<? extends Serializable> pollConsume() throws twitter4j.TwitterException
twitter4j.TwitterException
public abstract List<? extends Serializable> directConsume() throws twitter4j.TwitterException
twitter4j.TwitterException
public void setLastId(long sinceId)
sinceId
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |