Class BrowserNotificationDispatcher
- java.lang.Object
-
- org.opennms.netmgt.notifd.browser.BrowserNotificationDispatcher
-
public class BrowserNotificationDispatcher extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BrowserNotificationDispatcher.Handler
-
Constructor Summary
Constructors Constructor Description BrowserNotificationDispatcher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BrowserNotificationDispatcher
getInstance()
void
notify(java.lang.String user, BrowserNotificationMessage notification)
BrowserNotificationDispatcher.Handler
subscribe(java.lang.String user, java.util.function.Consumer<BrowserNotificationMessage> consumer)
void
unsubscribe(BrowserNotificationDispatcher.Handler handler)
-
-
-
Method Detail
-
subscribe
public BrowserNotificationDispatcher.Handler subscribe(java.lang.String user, java.util.function.Consumer<BrowserNotificationMessage> consumer)
-
unsubscribe
public void unsubscribe(BrowserNotificationDispatcher.Handler handler)
-
notify
public void notify(java.lang.String user, BrowserNotificationMessage notification)
-
getInstance
public static BrowserNotificationDispatcher getInstance()
-
-