Class EventCollector
- java.lang.Object
-
- com.logicaldoc.core.communication.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 Summary
Constructors Constructor Description EventCollector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(EventListener listener)static EventCollectorget()ContextPropertiesgetConfig()static booleanisEnabled()voidnewEvent(History history)Notifies all the listeners in another threadvoidremoveListener(EventListener listener)voidsetConfig(ContextProperties config)voidstart()
-
-
-
Method Detail
-
get
public static EventCollector get()
-
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
-
getConfig
public ContextProperties getConfig()
-
setConfig
public void setConfig(ContextProperties config)
-
isEnabled
public static boolean isEnabled()
-
-