public abstract class AbstractDataEventSession extends Object implements DataEventSession
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDataEventSession(IJSpace space,
EventSessionConfig config) |
protected AbstractDataEventSession(IJSpace space, EventSessionConfig config)
public IJSpace getSpace()
getSpace in interface EventSessionprotected IDirectSpaceProxy getNotificationsSpace()
public EventSessionConfig getSessionConfig()
EventSessiongetSessionConfig in interface EventSessionpublic void close()
throws RemoteException
EventSessionclose in interface EventSessionRemoteException - if the remove space failed to remove the notification
registration.public EventRegistration addListener(Object template, RemoteEventListener listener) throws RemoteException
DataEventSessionaddListener in interface DataEventSessiontemplate - the template to be match with.listener - the listenerRemoteException - if the space has failed to perform the registrationpublic EventRegistration addListener(Object template, RemoteEventListener listener, NotifyActionType actionTypes) throws RemoteException
DataEventSessionaddListener in interface DataEventSessiontemplate - the template to be match with.listener - the listeneractionTypes - the type of actions you wish to receive notification on.RemoteException - if the space has failed to perform the registrationpublic EventRegistration addListener(Object template, RemoteEventListener listener, long lease, NotifyActionType actionTypes) throws RemoteException
DataEventSessionDataEventSession.addListener(Object,
net.jini.core.event.RemoteEventListener, NotifyActionType) instead.addListener in interface DataEventSessionRemoteExceptionpublic EventRegistration addListener(Object template, RemoteEventListener listener, NotifyActionType notifyType, MarshalledObject handback, INotifyDelegatorFilter filter) throws RemoteException
DataEventSessionaddListener in interface DataEventSessiontemplate - the template to be match with.listener - the listenernotifyType - the type of actions you wish to receive notification on.handback - an object that will be passed back to the listener when notified.filter - a server-side filter to filter out notifications.RemoteException - if the space has failed to perform the registrationpublic EventRegistration addListener(Object template, RemoteEventListener listener, long lease, MarshalledObject handback, INotifyDelegatorFilter filter, NotifyActionType notifyType) throws RemoteException
DataEventSessionDataEventSession.addListener(Object,
net.jini.core.event.RemoteEventListener, NotifyActionType, java.rmi.MarshalledObject,
com.j_spaces.core.client.INotifyDelegatorFilter) instead.addListener in interface DataEventSessionRemoteExceptionpublic EventRegistration addListener(Object template, long lease, NotifyInfo notifyInfo) throws RemoteException
RemoteExceptionprotected abstract EventRegistration addListenerInternal(Object template, long lease, NotifyInfo notifyInfo) throws RemoteException
RemoteExceptionpublic NotifyInfo createNotifyInfo(RemoteEventListener listener, NotifyActionType notifyType)
public void removeListener(EventRegistration registration) throws RemoteException
DataEventSessionremoveListener in interface DataEventSessionregistration - the registration object received from the server when the listener was
added.RemoteException - if the space has failed to unregister the listener.Copyright © GigaSpaces.