Class BrowserNotificationDispatcher
- java.lang.Object
-
- org.opennms.netmgt.notifd.browser.BrowserNotificationDispatcher
-
public class BrowserNotificationDispatcher extends 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(String user, BrowserNotificationMessage notification)
BrowserNotificationDispatcher.Handler
subscribe(String user, java.util.function.Consumer<BrowserNotificationMessage> consumer)
void
unsubscribe(BrowserNotificationDispatcher.Handler handler)
-
-
-
Method Detail
-
subscribe
public BrowserNotificationDispatcher.Handler subscribe(String user, java.util.function.Consumer<BrowserNotificationMessage> consumer)
-
unsubscribe
public void unsubscribe(BrowserNotificationDispatcher.Handler handler)
-
notify
public void notify(String user, BrowserNotificationMessage notification)
-
getInstance
public static BrowserNotificationDispatcher getInstance()
-
-