twitter4j
Class StatusAdapter

java.lang.Object
  extended by twitter4j.StatusAdapter
All Implemented Interfaces:
StatusListener
Direct Known Subclasses:
UserStreamAdapter

public class StatusAdapter
extends java.lang.Object
implements StatusListener

Since:
Twitter4J 2.1.3
Author:
Rémy Rakic at gmail.com

Constructor Summary
StatusAdapter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusAdapter

public StatusAdapter()
Method Detail

onDeletionNotice

public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice)
Description copied from interface: StatusListener
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.

Specified by:
onDeletionNotice in interface StatusListener
Parameters:
statusDeletionNotice - the deletionNotice notice
See Also:
Streaming API Documentation - Parsing Responses

onException

public void onException(java.lang.Exception ex)
Specified by:
onException in interface StatusListener

onStatus

public void onStatus(Status status)
Specified by:
onStatus in interface StatusListener

onTrackLimitationNotice

public void onTrackLimitationNotice(int numberOfLimitedStatuses)
Description copied from interface: StatusListener
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.

Specified by:
onTrackLimitationNotice in interface StatusListener
Parameters:
numberOfLimitedStatuses - an enumeration of statuses that matched the track predicate but were administratively limited.
See Also:
Streaming API Documentation - Track Limiting, - Parsing Responses, Twitter Development Talk - Track API Limit message meaning