public class NotifierClient extends java.lang.Object implements RemoteNotifier, java.lang.AutoCloseable
RemoteNotifier.| Modifier and Type | Field and Description |
|---|---|
javax.websocket.Session |
session |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addNotificationListener(long remoteId,
NotificationType<T> notificationType,
NotificationListener<T> notificationListener) |
void |
close() |
static NotifierClient |
create(java.net.URI uri,
java.util.concurrent.Executor executor) |
java.lang.String |
getSessionId() |
<T> void |
removeNotificationListener(long remoteId,
NotificationType<T> notificationType,
NotificationListener<T> notificationListener) |
public static NotifierClient create(java.net.URI uri, java.util.concurrent.Executor executor) throws RemoteException
RemoteExceptionpublic void close()
throws RemoteException
close in interface java.lang.AutoCloseableRemoteExceptionpublic java.lang.String getSessionId()
public <T> void addNotificationListener(long remoteId,
NotificationType<T> notificationType,
NotificationListener<T> notificationListener)
throws RemoteException
addNotificationListener in interface RemoteNotifierRemoteExceptionpublic <T> void removeNotificationListener(long remoteId,
NotificationType<T> notificationType,
NotificationListener<T> notificationListener)
throws RemoteException
removeNotificationListener in interface RemoteNotifierRemoteException