twitter4j
Interface StatusListener

All Known Implementing Classes:
StreamingExample

public interface StatusListener

Since:
Twitter4J 2.0.4
Author:
Yusuke Yamamoto - yusuke at mac.com

Method Summary
 void onDeletionNotice(StatusDeletionNotice statusDeletionNotice)
          Called upon deletionNotice notices.
 void onException(java.lang.Exception ex)
           
 void onStatus(Status status)
           
 void onTrackLimitationNotice(int numberOfLimitedStatuses)
          This notice will be sent each time a limited stream becomes unlimited.
If this number is high and or rapidly increasing, it is an indication that your predicate is too broad, and you should consider a predicate with higher selectivity.
 

Method Detail

onStatus

void onStatus(Status status)

onDeletionNotice

void onDeletionNotice(StatusDeletionNotice statusDeletionNotice)
Called upon deletionNotice notices. Clients are urged to honor deletionNotice requests and discard deleted statuses immediately. At times, status deletionNotice messages may arrive before the status. Even in this case, the late arriving status should be deleted from your backing store.

Parameters:
statusDeletionNotice - the deletionNotice notice
Since:
Twitter4J 2.1.0
See Also:
Streaming API Documentation - Parsing Responses

onTrackLimitationNotice

void onTrackLimitationNotice(int numberOfLimitedStatuses)
This notice will be sent each time a limited stream becomes unlimited.
If this number is high and or rapidly increasing, it is an indication that your predicate is too broad, and you should consider a predicate with higher selectivity.

Parameters:
numberOfLimitedStatuses - an enumeration of statuses that matched the track predicate but were administratively limited.
Since:
Twitter4J 2.1.0
See Also:
Streaming API Documentation - Track Limiting, - Parsing Responses, Twitter Development Talk - Track API Limit message meaning

onException

void onException(java.lang.Exception ex)