public class BrowserNotificationDispatcher extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BrowserNotificationDispatcher.Handler |
Constructor and Description |
---|
BrowserNotificationDispatcher() |
Modifier and Type | Method and 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) |
public BrowserNotificationDispatcher.Handler subscribe(String user, java.util.function.Consumer<BrowserNotificationMessage> consumer)
public void unsubscribe(BrowserNotificationDispatcher.Handler handler)
public void notify(String user, BrowserNotificationMessage notification)
public static BrowserNotificationDispatcher getInstance()
Copyright © 2021. All rights reserved.