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 EventSession
protected IDirectSpaceProxy getNotificationsSpace()
public EventSessionConfig getSessionConfig()
EventSession
getSessionConfig
in interface EventSession
public void close() throws RemoteException
EventSession
close
in interface EventSession
RemoteException
- if the remove space failed to remove the notification
registration.public EventRegistration addListener(Object template, RemoteEventListener listener) throws RemoteException
DataEventSession
addListener
in interface DataEventSession
template
- 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
DataEventSession
addListener
in interface DataEventSession
template
- 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
DataEventSession
DataEventSession.addListener(Object,
net.jini.core.event.RemoteEventListener, NotifyActionType)
instead.addListener
in interface DataEventSession
RemoteException
public EventRegistration addListener(Object template, RemoteEventListener listener, NotifyActionType notifyType, MarshalledObject handback, INotifyDelegatorFilter filter) throws RemoteException
DataEventSession
addListener
in interface DataEventSession
template
- 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
DataEventSession
DataEventSession.addListener(Object,
net.jini.core.event.RemoteEventListener, NotifyActionType, java.rmi.MarshalledObject,
com.j_spaces.core.client.INotifyDelegatorFilter)
instead.addListener
in interface DataEventSession
RemoteException
public EventRegistration addListener(Object template, long lease, NotifyInfo notifyInfo) throws RemoteException
RemoteException
protected abstract EventRegistration addListenerInternal(Object template, long lease, NotifyInfo notifyInfo) throws RemoteException
RemoteException
public NotifyInfo createNotifyInfo(RemoteEventListener listener, NotifyActionType notifyType)
public void removeListener(EventRegistration registration) throws RemoteException
DataEventSession
removeListener
in interface DataEventSession
registration
- the registration object received from the server when the listener was
added.RemoteException
- if the space has failed to unregister the listener.Copyright © GigaSpaces.