VMware Tanzu GemFire Native C++ Reference 10.3.0
|
This interface is used to modify the listeners that are associated with a CQ. More...
#include <CqAttributesMutator.hpp>
Public Member Functions | |
void | addCqListener (const std::shared_ptr< CqListener > &aListener) |
Adds a CQ listener to the end of the list of CQ listeners on this CqQuery. More... | |
CqAttributesMutator (const std::shared_ptr< CqAttributes > &impl) | |
Constructs a CqAttributesMutator with the given CqAttributes . More... | |
void | removeCqListener (const std::shared_ptr< CqListener > &aListener) |
Removes given CQ listener from the list of CQ listeners on this CqQuery. More... | |
void | setCqListeners (const std::vector< std::shared_ptr< CqListener > > &newListeners) |
Adds the given set CqListener on this CQ. More... | |
This interface is used to modify the listeners that are associated with a CQ.
Each CqQuery has an CqAttributesMutator interface which supports modification of certain CQ attributes after the CQ has been created.
|
explicit |
Constructs a CqAttributesMutator
with the given CqAttributes
.
void apache::geode::client::CqAttributesMutator::addCqListener | ( | const std::shared_ptr< CqListener > & | aListener | ) |
Adds a CQ listener to the end of the list of CQ listeners on this CqQuery.
aListener | the user defined CQ listener to add to the CqQuery. |
IllegalArgumentException | if aListener is nullptr |
void apache::geode::client::CqAttributesMutator::removeCqListener | ( | const std::shared_ptr< CqListener > & | aListener | ) |
Removes given CQ listener from the list of CQ listeners on this CqQuery.
Does nothing if the specified listener has not been added. If the specified listener has been added then will be called on it; otherwise does nothing.
aListener | the CQ listener to remove from the CqQuery. |
IllegalArgumentException | if aListener is nullptr |
void apache::geode::client::CqAttributesMutator::setCqListeners | ( | const std::vector< std::shared_ptr< CqListener > > & | newListeners | ) |
Adds the given set CqListener on this CQ.
If the CQ already has CqListeners, this removes those old CQs and initializes with the newListeners.
newListeners | a possibly empty array of listeners to add to this CqQuery. |
IllegalArgumentException | if the newListeners array has a nullptr element |