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 void
addListener(EventListener listener)
static EventCollector
get()
ContextProperties
getConfig()
static boolean
isEnabled()
void
newEvent(History history)
Notifies all the listeners in another threadvoid
removeListener(EventListener listener)
void
setConfig(ContextProperties config)
void
start()
void
stop()
-
-
-
Method Detail
-
get
public static EventCollector get()
-
start
public void start()
-
stop
public void stop()
-
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()
-
-