Class EventCollector
java.lang.Object
com.logicaldoc.core.communication.EventCollector
A collector of events that can distribute them to a set of listeners
- Since:
- 7.7.1
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(EventListener listener) static EventCollector
get()
static boolean
void
Notifies all the listeners in another threadvoid
removeListener
(EventListener listener) void
setConfig
(ContextProperties config)
-
Constructor Details
-
EventCollector
public EventCollector()
-
-
Method Details
-
get
-
addListener
-
removeListener
-
newEvent
Notifies all the listeners in another thread- Parameters:
history
- the history to notify
-
getConfig
-
setConfig
-
isEnabled
public static boolean isEnabled()
-