public abstract class Twitter4JConsumer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
lastId
The last tweet ID received.
|
protected TwitterEndpoint |
te
Instance of TwitterEndpoint.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Twitter4JConsumer(TwitterEndpoint te) |
| Modifier and Type | Method and Description |
|---|---|
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
|
protected TwitterEndpoint te
protected long lastId
protected Twitter4JConsumer(TwitterEndpoint te)
protected void checkLastId(long newId)
public abstract List<? extends Serializable> pollConsume() throws twitter4j.TwitterException
twitter4j.TwitterExceptionpublic abstract List<? extends Serializable> directConsume() throws twitter4j.TwitterException
twitter4j.TwitterExceptionpublic void setLastId(long sinceId)
sinceId - Apache Camel