Apache Geode Native C++ Reference 1.15.0
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"
31namespace apache {
32namespace geode {
33namespace client {
34class CqListener;
43class 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_
This interface is used to modify the listeners that are associated with a CQ.
Definition: CqAttributesMutator.hpp:43
CqAttributesMutator(const std::shared_ptr< CqAttributes > &impl)
Constructs a CqAttributesMutator with the given CqAttributes.
void removeCqListener(const std::shared_ptr< CqListener > &aListener)
Removes given CQ listener from the list of CQ listeners on this CqQuery.
void addCqListener(const std::shared_ptr< CqListener > &aListener)
Adds a CQ listener to the end of the list of CQ listeners on this CqQuery.
void setCqListeners(const std::vector< std::shared_ptr< CqListener > > &newListeners)
Adds the given set CqListener on this CQ.

Apache Geode C++ Cache API Documentation