Class EventCollector

java.lang.Object
com.logicaldoc.core.communication.EventCollector

@Component("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 Details Link icon

    • EventCollector Link icon

      public EventCollector()
  • Method Details Link icon

    • get Link icon

      public static EventCollector get()
    • addListener Link icon

      public void addListener(EventListener listener)
    • removeListener Link icon

      public void removeListener(EventListener listener)
    • newEvent Link icon

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

      public static boolean isEnabled()