winterwell.jtwitter
Interface AStream.IListen

Enclosing class:
AStream

public static interface AStream.IListen

Use these for push-notification of incoming tweets and stream activity. WARNING: listeners should be fast. They run in the gobbler thread, which may be switched off by Twitter if it can't keep up with the flow.

See Also:
etc. for pull-based notification.

Method Summary
 boolean processEvent(TwitterEvent event)
           
 boolean processSystemEvent(java.lang.Object[] obj)
           
 boolean processTweet(Twitter.ITweet tweet)
           
 

Method Detail

processEvent

boolean processEvent(TwitterEvent event)
Parameters:
event -
Returns:
true to pass this on to any other, earlier-added, listeners. false to stop earlier listeners from hearing this event.

processSystemEvent

boolean processSystemEvent(java.lang.Object[] obj)
Parameters:
obj - Miscellaneous Twitter messages, such as limits & deletes
Returns:
true to pass this on to any other, earlier-added, listeners. false to stop earlier listeners from hearing this event.

processTweet

boolean processTweet(Twitter.ITweet tweet)
Parameters:
tweet -
Returns:
true to pass this on to any other, earlier-added, listeners. false to stop earlier listeners from hearing this event.