Class EventCollector


  • public class EventCollector
    extends Object
    A collector of events that can distribute them to a set of listeners
    Since:
    7.7.1
    Author:
    Marco Meschieri - LogicalDOC
    • Constructor Detail

      • EventCollector

        public EventCollector()
    • Method Detail

      • start

        public void start()
      • addListener

        public void addListener​(EventListener listener)
      • removeListener

        public void removeListener​(EventListener listener)
      • newEvent

        public void newEvent​(History history)
        Notifies all the listeners in another thread
        Parameters:
        history - the history to notify
      • isEnabled

        public static boolean isEnabled()