20#ifndef GEODE_CQQUERY_H_
21#define GEODE_CQQUERY_H_
25#include "CqAttributes.hpp"
30#include "internal/geode_globals.hpp"
67 virtual std::shared_ptr<Query>
getQuery()
const = 0;
73 virtual const std::string&
getName()
const = 0;
113 std::chrono::milliseconds timeout = DEFAULT_QUERY_RESPONSE_TIMEOUT) = 0;
CqState
CqState.hpp.
Definition CqState.hpp:37
This interface is used to modify the listeners that are associated with a CQ.
Definition CqAttributesMutator.hpp:43
A Query is obtained from a QueryService which in turn is obtained from the Cache.
Definition CqQuery.hpp:54
virtual const std::string & getName() const =0
Get the name of the CQ.
virtual bool isClosed() const =0
This allows to check if the CQ is closed.
virtual bool isDurable() const =0
This allows to check if the CQ is durable.
virtual bool isStopped() const =0
This allows to check if the CQ is in stopped.
virtual std::shared_ptr< CqStatistics > getStatistics() const =0
Get the statistics information of this CQ.
virtual const std::string & getQueryString() const =0
Get the query string provided when a new Query was created from a QueryService.
virtual CqState getState()=0
Get the state of the CQ in CqState object form.
virtual bool isRunning() const =0
This allows to check if the CQ is in running or active.
virtual std::shared_ptr< Query > getQuery() const =0
Get the query object generated for this CQs query.
virtual void close()=0
Close the CQ and stop execution.
virtual CqAttributesMutator getCqAttributesMutator() const =0
Get the AttributesMutator of this CQ.
virtual std::shared_ptr< CqAttributes > getCqAttributes() const =0
Get the Attributes of this CQ.
virtual void execute()=0
Executes the OQL Query on the cache server and returns the results.
virtual std::shared_ptr< CqResults > executeWithInitialResults(std::chrono::milliseconds timeout=DEFAULT_QUERY_RESPONSE_TIMEOUT)=0
Start executing the CQ or if this CQ is stopped earlier, resumes execution of the CQ.
virtual void stop()=0
Stops this CqQuery without releasing resources.