Class ListenerNotifier

  • All Implemented Interfaces:
    java.io.Serializable

    
    public class ListenerNotifier
     implements Serializable
                        

    Processes sample events. The current implementation processes events in the calling thread using notifyListeners Thread safe class

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void notifyListeners(SampleEvent res, List<SampleListener> listeners) Notify a list of listeners that a sample has occurred.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ListenerNotifier

        ListenerNotifier()
    • Method Detail

      • notifyListeners

         void notifyListeners(SampleEvent res, List<SampleListener> listeners)

        Notify a list of listeners that a sample has occurred.

        Parameters:
        res - the sample event that has occurred.
        listeners - a list of the listeners which should be notified.