Class ContinousQuery
- All Implemented Interfaces:
BatchRemoteEventListener,Remote,EventListener,RemoteEventListener
- Since:
- 8.0.3
- Author:
- Niv Ingberg
-
Constructor Summary
ConstructorsConstructorDescriptionContinousQuery(ISpaceProxy spaceProxy, ITemplatePacket query, ContinousQueryListener listener, ContinousQueryConfig config, DataEventSession eventSession) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidnotify(RemoteEvent remoteEvent) Notify the listener about an event.voidnotifyBatch(BatchRemoteEvent theEvents)
-
Constructor Details
-
ContinousQuery
public ContinousQuery(ISpaceProxy spaceProxy, ITemplatePacket query, ContinousQueryListener listener, ContinousQueryConfig config, DataEventSession eventSession) throws RemoteException - Throws:
RemoteException
-
-
Method Details
-
close
- Throws:
RemoteException
-
notify
Description copied from interface:RemoteEventListenerNotify the listener about an event.The call to notify is synchronous to allow the party making the call to know if the call succeeded. However, it is not part of the semantics of the call that the notification return can be delayed while the recipient of the call reacts to the occurrence of the event. Simply put, the best strategy on the part of the recipient is to note the occurrence in some way and then return from the notify method as quickly as possible.
UnknownEventException is thrown when the recipient does not recognize the combination of the event identifier and the event source as something in which it is interested. Throwing this exception has the effect of asking the sender to not send further notifications of this kind of event from this source in the future.
- Specified by:
notifyin interfaceRemoteEventListener- Parameters:
remoteEvent- the remote event that occurred- Throws:
UnknownEventException- the recipient does not recognize the combination of event identifier and event sourceRemoteException
-
notifyBatch
- Specified by:
notifyBatchin interfaceBatchRemoteEventListener- Throws:
UnknownEventExceptionRemoteException
-