G - The type of the grouping, i.e. a session id.public class NotificationListenerTracker<G>
extends java.lang.Object
RemoteNotifier and allows listeners to be removed
all at once, i.e. when a node is destroyed.| Constructor and Description |
|---|
NotificationListenerTracker(RemoteNotifier remoteNotifier) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addNotificationListener(G group,
long remoteId,
NotificationType<T> type,
NotificationListener<T> listener) |
boolean |
removeAll(G group) |
<T> void |
removeNotificationListener(G group,
long remoteId,
NotificationType<T> type) |
public NotificationListenerTracker(RemoteNotifier remoteNotifier)
public <T> void addNotificationListener(G group, long remoteId, NotificationType<T> type, NotificationListener<T> listener) throws RemoteException
RemoteExceptionpublic <T> void removeNotificationListener(G group, long remoteId, NotificationType<T> type) throws RemoteException
RemoteExceptionpublic boolean removeAll(G group) throws RemoteException
RemoteException