VMware Tanzu GemFire Native C++ Reference  10.1.5
CqAttributesMutator.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef GEODE_CQATTRIBUTESMUTATOR_H_
4 #define GEODE_CQATTRIBUTESMUTATOR_H_
5 
6 /*
7  * Licensed to the Apache Software Foundation (ASF) under one or more
8  * contributor license agreements. See the NOTICE file distributed with
9  * this work for additional information regarding copyright ownership.
10  * The ASF licenses this file to You under the Apache License, Version 2.0
11  * (the "License"); you may not use this file except in compliance with
12  * the License. You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  */
22 #include <memory>
23 #include <vector>
24 
25 #include "CqAttributes.hpp"
26 #include "internal/geode_globals.hpp"
31 namespace apache {
32 namespace geode {
33 namespace client {
34 class CqListener;
43 class APACHE_GEODE_EXPORT CqAttributesMutator {
44  public:
48  explicit CqAttributesMutator(const std::shared_ptr<CqAttributes>& impl);
49 
55  void addCqListener(const std::shared_ptr<CqListener>& aListener);
56 
65  void removeCqListener(const std::shared_ptr<CqListener>& aListener);
66 
77  const std::vector<std::shared_ptr<CqListener>>& newListeners);
78 
79  private:
80  std::shared_ptr<CqAttributes> m_cqAttributes;
81 };
82 } // namespace client
83 } // namespace geode
84 } // namespace apache
85 
86 #endif // GEODE_CQATTRIBUTESMUTATOR_H_
apache::geode::client::CqAttributesMutator
This interface is used to modify the listeners that are associated with a CQ.
Definition: CqAttributesMutator.hpp:43
apache::geode::client::CqAttributesMutator::addCqListener
void addCqListener(const std::shared_ptr< CqListener > &aListener)
Adds a CQ listener to the end of the list of CQ listeners on this CqQuery.
apache::geode::client::CqAttributesMutator::setCqListeners
void setCqListeners(const std::vector< std::shared_ptr< CqListener >> &newListeners)
Adds the given set CqListener on this CQ.
apache::geode::client::CqAttributesMutator::CqAttributesMutator
CqAttributesMutator(const std::shared_ptr< CqAttributes > &impl)
Constructs a CqAttributesMutator with the given {}.
apache::geode::client::CqAttributesMutator::removeCqListener
void removeCqListener(const std::shared_ptr< CqListener > &aListener)
Removes given CQ listener from the list of CQ listeners on this CqQuery.

Apache Geode C++ Cache API Documentation