public class ContinuousQuery
extends java.lang.Object
Constructor | Description |
---|---|
ContinuousQuery(QueryCommand command) |
Initializes a new instance of the ContinuousQuery class.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addDataModificationListener(QueryDataModificationListener listener,
java.util.EnumSet<EventType> eventEnumSet,
EventDataFilter datafilter) |
This method registers a custom listener that is fired on change in dataset of a Continuous Query.
|
boolean |
equals(java.lang.Object obj) |
Compares two instances of ContinuousQuery for equality.
|
QueryCommand |
getQueryCommand() |
Gets the query command for the Continuous Query.
|
int |
hashCode() |
Computes the hash code for the current object.
|
void |
removeDataModificationListener(QueryDataModificationListener listener,
java.util.EnumSet<EventType> eventEnumSet) |
This method unregisters a custom listener that is fired on change in dataset of a Continuous Query.
|
void |
setQueryCommand(QueryCommand value) |
Sets the query command for the Continuous Query.
|
public ContinuousQuery(QueryCommand command)
command
- QueryCommand
containing query text and values.public QueryCommand getQueryCommand()
public void setQueryCommand(QueryCommand value)
value
- The QueryCommand instance.public void addDataModificationListener(QueryDataModificationListener listener, java.util.EnumSet<EventType> eventEnumSet, EventDataFilter datafilter) throws java.lang.IllegalArgumentException
listener
- The listener that is invoked whenever there is a change in dataset of Continuous Query.eventEnumSet
- Registers the listener with the specified event types in the enumset.datafilter
- This enum is to describe when registering an event, upon raise how much data is retrieved from cache when the event is raised.java.lang.IllegalArgumentException
public void removeDataModificationListener(QueryDataModificationListener listener, java.util.EnumSet<EventType> eventEnumSet) throws java.lang.IllegalArgumentException
listener
- The listener that was registered with Continuous Query.eventEnumSet
- Unregisters the listener with the specified event types in the enumset.java.lang.IllegalArgumentException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- An instance of ContinuousQuery.hashCode()
,
HashMap
public int hashCode()
HashMap
.hashCode
in class java.lang.Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)