public interface DataEventSession extends EventSession
EventSession
Modifier and Type | Method and Description |
---|---|
EventRegistration |
addListener(Object template,
RemoteEventListener listener)
Registers a listener with a space using a POJO template.
|
EventRegistration |
addListener(Object template,
RemoteEventListener listener,
long lease,
MarshalledObject handback,
INotifyDelegatorFilter filter,
NotifyActionType actionTypes)
Deprecated.
Since 9.7
|
EventRegistration |
addListener(Object template,
RemoteEventListener listener,
long lease,
NotifyActionType actionTypes)
Deprecated.
Since 9.7
|
EventRegistration |
addListener(Object template,
RemoteEventListener listener,
NotifyActionType actionTypes)
Registers a listener with a space using a POJO template
|
EventRegistration |
addListener(Object template,
RemoteEventListener listener,
NotifyActionType actionTypes,
MarshalledObject handback,
INotifyDelegatorFilter filter)
Registers a listener with a space using a POJO template
|
void |
removeListener(EventRegistration registration)
Unregisters the listener from the space.
|
close, getSessionConfig, getSpace
EventRegistration addListener(Object template, RemoteEventListener listener) throws RemoteException
template
- the template to be match with.listener
- the listenerRemoteException
- if the space has failed to perform the registrationEventRegistration addListener(Object template, RemoteEventListener listener, NotifyActionType actionTypes) throws RemoteException
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 registrationEventRegistration addListener(Object template, RemoteEventListener listener, NotifyActionType actionTypes, MarshalledObject handback, INotifyDelegatorFilter filter) throws RemoteException
template
- the template to be match with.listener
- the listeneractionTypes
- 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 registration@Deprecated EventRegistration addListener(Object template, RemoteEventListener listener, long lease, NotifyActionType actionTypes) throws RemoteException
addListener(Object,
net.jini.core.event.RemoteEventListener, NotifyActionType)
instead.RemoteException
@Deprecated EventRegistration addListener(Object template, RemoteEventListener listener, long lease, MarshalledObject handback, INotifyDelegatorFilter filter, NotifyActionType actionTypes) throws RemoteException
addListener(Object,
net.jini.core.event.RemoteEventListener, NotifyActionType, java.rmi.MarshalledObject,
com.j_spaces.core.client.INotifyDelegatorFilter)
instead.RemoteException
void removeListener(EventRegistration registration) throws RemoteException, UnknownLeaseException
registration
- the registration object received from the server when the listener was
added.RemoteException
- if the space has failed to unregister the listener.UnknownLeaseException
- if the lease of the registration is invalid.Copyright © GigaSpaces.