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
RemoteException
public void close() throws RemoteException
close
in interface java.lang.AutoCloseable
RemoteException
public java.lang.String getSessionId()
public <T> void addNotificationListener(long remoteId, NotificationType<T> notificationType, NotificationListener<T> notificationListener) throws RemoteException
addNotificationListener
in interface RemoteNotifier
RemoteException
public <T> void removeNotificationListener(long remoteId, NotificationType<T> notificationType, NotificationListener<T> notificationListener) throws RemoteException
removeNotificationListener
in interface RemoteNotifier
RemoteException