Class EventDispatcher
- java.lang.Object
-
- com.alibaba.nacos.config.server.utils.event.EventDispatcher
-
public class EventDispatcher extends Object
Event dispatcher- Author:
- Nacos
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventDispatcher.AbstractEventListenerstatic interfaceEventDispatcher.Event
-
Constructor Summary
Constructors Constructor Description EventDispatcher()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddEventListener(EventDispatcher.AbstractEventListener listener)add event listenerstatic voidclear()For only test purposestatic voidfireEvent(EventDispatcher.Event event)fire event, notify listeners.
-
-
-
Method Detail
-
addEventListener
public static void addEventListener(EventDispatcher.AbstractEventListener listener)
add event listener
-
fireEvent
public static void fireEvent(EventDispatcher.Event event)
fire event, notify listeners.
-
clear
public static void clear()
For only test purpose
-
-