Class SampleListener

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.Pausable, adams.core.QuickInfoSupporter, adams.core.SizeOfHandler, adams.core.Stoppable, adams.flow.core.FlowContextHandler, Serializable, twitter4j.StatusListener

    public class SampleListener
    extends AbstractListener
    implements twitter4j.StatusListener
    Listener for twitter sample stream.
    Version:
    $Revision: 13567 $
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • SampleListener

        public SampleListener()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • onStatus

        public void onStatus​(twitter4j.Status status)
        When receiving a status.
        Specified by:
        onStatus in interface twitter4j.StatusListener
        Parameters:
        status - the status
      • onDeletionNotice

        public void onDeletionNotice​(twitter4j.StatusDeletionNotice statusDeletionNotice)
        Ignored.
        Specified by:
        onDeletionNotice in interface twitter4j.StatusListener
        Parameters:
        statusDeletionNotice -
      • onTrackLimitationNotice

        public void onTrackLimitationNotice​(int i)
        Ignored.
        Specified by:
        onTrackLimitationNotice in interface twitter4j.StatusListener
        Parameters:
        i -
      • onScrubGeo

        public void onScrubGeo​(long l,
                               long l1)
        Ignored.
        Specified by:
        onScrubGeo in interface twitter4j.StatusListener
        Parameters:
        l -
        l1 -
      • onStallWarning

        public void onStallWarning​(twitter4j.StallWarning stallWarning)
        Outputs a stall warning.
        Specified by:
        onStallWarning in interface twitter4j.StatusListener
        Parameters:
        stallWarning - the warning
      • onException

        public void onException​(Exception e)
        Gets called if an exception is encountered.
        Parameters:
        e - the exception