public class StatusAdapter extends java.lang.Object implements StatusListener
Constructor and Description |
---|
StatusAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
onDeletionNotice(StatusDeletionNotice statusDeletionNotice)
Called upon deletionNotice notices.
|
void |
onException(java.lang.Exception ex) |
void |
onScrubGeo(long userId,
long upToStatusId)
Called upon location deletion messages.
|
void |
onStallWarning(StallWarning warning)
Called when receiving stall warnings.
|
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. |
public void onStatus(Status status)
onStatus
in interface StatusListener
public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice)
StatusListener
onDeletionNotice
in interface StatusListener
statusDeletionNotice
- the deletionNotice noticepublic void onTrackLimitationNotice(int numberOfLimitedStatuses)
StatusListener
onTrackLimitationNotice
in interface StatusListener
numberOfLimitedStatuses
- an enumeration of statuses that matched the track predicate but were administratively limited.public void onScrubGeo(long userId, long upToStatusId)
StatusListener
onScrubGeo
in interface StatusListener
userId
- user idupToStatusId
- up to status idpublic void onException(java.lang.Exception ex)
onException
in interface StreamListener
public void onStallWarning(StallWarning warning)
StatusListener
onStallWarning
in interface StatusListener
warning
- StallWaningCopyright © 2018. All Rights Reserved.