public class DefaultDataEventSession extends AbstractDataEventSession
Modifier and Type | Method and Description |
---|---|
protected EventRegistration |
addListenerInternal(Object template,
long lease,
NotifyInfo info) |
void |
close()
closes the session and deregister all listeners.
|
void |
removeListener(EventRegistration registration)
Unregisters the listener from the space.
|
addListener, addListener, addListener, addListener, addListener, addListener, createNotifyInfo, getNotificationsSpace, getSessionConfig, getSpace
protected EventRegistration addListenerInternal(Object template, long lease, NotifyInfo info) throws RemoteException
addListenerInternal
in class AbstractDataEventSession
RemoteException
public void removeListener(EventRegistration registration) throws RemoteException
DataEventSession
removeListener
in interface DataEventSession
removeListener
in class AbstractDataEventSession
registration
- the registration object received from the server when the listener was
added.RemoteException
- if the space has failed to unregister the listener.public void close() throws RemoteException
EventSession
close
in interface EventSession
close
in class AbstractDataEventSession
RemoteException
- if the remove space failed to remove the notification
registration.Copyright © GigaSpaces.