public abstract class AbstractStreamingConsumerHandler extends AbstractTwitterConsumerHandler implements twitter4j.StatusListener, org.apache.camel.Service
endpoint, log| Constructor and Description |
|---|
AbstractStreamingConsumerHandler(TwitterEndpoint te) |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.camel.Exchange> |
directConsume()
Called by direct consumers.
|
protected twitter4j.TwitterStream |
getTwitterStream() |
void |
onDeletionNotice(twitter4j.StatusDeletionNotice statusDeletionNotice) |
protected void |
onEvent(org.apache.camel.Exchange exchange) |
void |
onException(Exception ex) |
void |
onScrubGeo(long userId,
long upToStatusId) |
void |
onStatus(twitter4j.Status status) |
void |
onTrackLimitationNotice(int numberOfLimitedStatuses) |
List<org.apache.camel.Exchange> |
pollConsume()
Called by polling consumers during each poll.
|
void |
removeEventListener(TwitterEventListener tweeterStatusListener) |
void |
setEventListener(TwitterEventListener tweeterStatusListener) |
void |
stop() |
getLastId, getLastIdPaging, getTwitter, setLastId, setLastIdIfGreaterpublic AbstractStreamingConsumerHandler(TwitterEndpoint te)
public List<org.apache.camel.Exchange> pollConsume() throws twitter4j.TwitterException
AbstractTwitterConsumerHandlerpollConsume in class AbstractTwitterConsumerHandlertwitter4j.TwitterExceptionpublic List<org.apache.camel.Exchange> directConsume() throws twitter4j.TwitterException
AbstractTwitterConsumerHandlerdirectConsume in class AbstractTwitterConsumerHandlertwitter4j.TwitterExceptionpublic void onException(Exception ex)
onException in interface twitter4j.StreamListenerpublic void onStatus(twitter4j.Status status)
onStatus in interface twitter4j.StatusListenerpublic void onDeletionNotice(twitter4j.StatusDeletionNotice statusDeletionNotice)
onDeletionNotice in interface twitter4j.StatusListenerpublic void onTrackLimitationNotice(int numberOfLimitedStatuses)
onTrackLimitationNotice in interface twitter4j.StatusListenerpublic void onScrubGeo(long userId,
long upToStatusId)
onScrubGeo in interface twitter4j.StatusListenerpublic void setEventListener(TwitterEventListener tweeterStatusListener)
public void removeEventListener(TwitterEventListener tweeterStatusListener)
public void stop()
stop in interface org.apache.camel.Serviceprotected twitter4j.TwitterStream getTwitterStream()
protected void onEvent(org.apache.camel.Exchange exchange)
Apache Camel