org.springframework.social.twitter.api
Interface StreamListener


public interface StreamListener

Listener interface for clients consuming data from a Twitter stream.


Method Summary
 void onDelete(StreamDeleteEvent deleteEvent)
          Called when a delete message is available on the stream
 void onLimit(int numberOfLimitedTweets)
          Called when the stream is being track limited.
 void onTweet(Tweet tweet)
          Called when a new Tweet is available on the stream
 void onWarning(StreamWarningEvent warningEvent)
          Called when a client is stalling and the stream is in danger of being disconnected.
 

Method Detail

onTweet

void onTweet(Tweet tweet)
Called when a new Tweet is available on the stream

Parameters:
tweet -

onDelete

void onDelete(StreamDeleteEvent deleteEvent)
Called when a delete message is available on the stream


onLimit

void onLimit(int numberOfLimitedTweets)
Called when the stream is being track limited.

Parameters:
numberOfLimitedTweets -

onWarning

void onWarning(StreamWarningEvent warningEvent)
Called when a client is stalling and the stream is in danger of being disconnected.