public final class DurableUnicastDelegatorSession extends AbstractDataEventSession implements IInternalEventSessionAdmin
Constructor and Description |
---|
DurableUnicastDelegatorSession(IJSpace space,
EventSessionConfig config) |
Modifier and Type | Method and Description |
---|---|
protected EventRegistration |
addListenerInternal(Object template,
long lease,
NotifyInfo info) |
void |
close()
closes the session and deregister all listeners.
|
String |
dumpState(EventRegistration registration) |
void |
removeListener(EventRegistration registration)
Unregisters the listener from the space.
|
addListener, addListener, addListener, addListener, addListener, addListener, createNotifyInfo, getNotificationsSpace, getSessionConfig, getSpace
public DurableUnicastDelegatorSession(IJSpace space, EventSessionConfig config)
protected EventRegistration addListenerInternal(Object template, long lease, NotifyInfo info) throws RemoteException
addListenerInternal
in class AbstractDataEventSession
RemoteException
public void removeListener(EventRegistration registration) throws RemoteException
DataEventSession
removeListener
in interface DataEventSession
removeListener
in class AbstractDataEventSession
registration
- 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
EventSession
close
in interface EventSession
close
in class AbstractDataEventSession
RemoteException
- if the remove space failed to remove the notification
registration.public String dumpState(EventRegistration registration)
dumpState
in interface IInternalEventSessionAdmin
Copyright © GigaSpaces.