public class NotifierClientEndpoint extends java.lang.Object implements RemoteNotifier
Modifier and Type | Field and Description |
---|---|
static long |
TIMEOUT_SECONDS |
Constructor and Description |
---|
NotifierClientEndpoint(java.util.concurrent.Executor executor) |
Modifier and Type | Method and Description |
---|---|
<T> void |
addNotificationListener(long remoteId,
NotificationType<T> notificationType,
NotificationListener<T> notificationListener) |
void |
close(javax.websocket.Session session) |
void |
error(javax.websocket.Session session,
java.lang.Throwable t) |
void |
onMessage(javax.websocket.Session session,
java.lang.String message) |
void |
open(javax.websocket.Session session,
javax.websocket.EndpointConfig config) |
<T> void |
removeNotificationListener(long remoteId,
NotificationType<T> notificationType,
NotificationListener<T> notificationListener) |
public static final long TIMEOUT_SECONDS
public NotifierClientEndpoint(java.util.concurrent.Executor executor)
public void open(javax.websocket.Session session, javax.websocket.EndpointConfig config)
public void onMessage(javax.websocket.Session session, java.lang.String message)
public void close(javax.websocket.Session session)
public void error(javax.websocket.Session session, java.lang.Throwable t)
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