Package com.gigaspaces.events
Class DefaultDataEventSession
java.lang.Object
com.gigaspaces.events.AbstractDataEventSession
com.gigaspaces.events.DefaultDataEventSession
- All Implemented Interfaces:
DataEventSession,EventSession
- Since:
- 9.7.0
- Author:
- Niv Ingberg
-
Method Summary
Modifier and TypeMethodDescriptionprotected EventRegistrationaddListenerInternal(Object template, long lease, NotifyInfo info) voidclose()closes the session and deregister all listeners.voidremoveListener(EventRegistration registration) Unregisters the listener from the space.Methods inherited from class com.gigaspaces.events.AbstractDataEventSession
addListener, addListener, addListener, addListener, addListener, addListener, createNotifyInfo, getNotificationsSpace, getSessionConfig, getSpace
-
Method Details
-
addListenerInternal
protected EventRegistration addListenerInternal(Object template, long lease, NotifyInfo info) throws RemoteException - Specified by:
addListenerInternalin classAbstractDataEventSession- Throws:
RemoteException
-
removeListener
Description copied from interface:DataEventSessionUnregisters the listener from the space.- Specified by:
removeListenerin interfaceDataEventSession- Overrides:
removeListenerin classAbstractDataEventSession- Parameters:
registration- the registration object received from the server when the listener was added.- Throws:
RemoteException- if the space has failed to unregister the listener.
-
close
Description copied from interface:EventSessioncloses the session and deregister all listeners.- Specified by:
closein interfaceEventSession- Overrides:
closein classAbstractDataEventSession- Throws:
RemoteException- if the remove space failed to remove the notification registration.
-