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, getSpaceprotected EventRegistration addListenerInternal(Object template, long lease, NotifyInfo info) throws RemoteException
addListenerInternal in class AbstractDataEventSessionRemoteExceptionpublic void removeListener(EventRegistration registration) throws RemoteException
DataEventSessionremoveListener in interface DataEventSessionremoveListener in class AbstractDataEventSessionregistration - 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
EventSessionclose in interface EventSessionclose in class AbstractDataEventSessionRemoteException - if the remove space failed to remove the notification
registration.Copyright © GigaSpaces.