Package com.linkedin.venice.listener
Class ListenerManager<T>
java.lang.Object
com.linkedin.venice.listener.ListenerManager<T>
- Type Parameters:
T
- T should be a type of listener
This class provides the unified way to manager venice listener.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ListenerManager
public ListenerManager()
-
-
Method Details
-
subscribe
-
unsubscribe
-
trigger
Trigger notification and execute the given handler.- Parameters:
key
-handler
- The function really handle the event. It accepts listener and call the corresponding handle method of this listener.
-