Apache Geode Native C++ Reference 1.15.0
CqAttributesFactory.hpp
Go to the documentation of this file.
1#pragma once
2
3#ifndef GEODE_CQATTRIBUTESFACTORY_H_
4#define GEODE_CQATTRIBUTESFACTORY_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
23#include <memory>
24
25#include "CqAttributes.hpp"
26#include "CqListener.hpp"
27#include "internal/geode_globals.hpp"
28
33namespace apache {
34namespace geode {
35namespace client {
36
57class CqAttributes;
58class CqListener;
59
60class APACHE_GEODE_EXPORT CqAttributesFactory {
61 public:
67
78 const std::shared_ptr<CqAttributes>& cqAttributes);
79
85 void addCqListener(const std::shared_ptr<CqListener>& cqListener);
86
97 const std::vector<std::shared_ptr<CqListener>>& cqListeners);
98
103 std::shared_ptr<CqAttributes> create();
104
105 private:
106 std::shared_ptr<CqAttributes> m_cqAttributes;
107};
108} // namespace client
109} // namespace geode
110} // namespace apache
111
112#endif // GEODE_CQATTRIBUTESFACTORY_H_
The factory class for the CqAttributes instance.
Definition: CqAttributesFactory.hpp:60
std::shared_ptr< CqAttributes > create()
Creates a CqAttributes with the current settings.
void addCqListener(const std::shared_ptr< CqListener > &cqListener)
Adds a CQ listener to the end of the list of cq listeners on this factory.
CqAttributesFactory(const std::shared_ptr< CqAttributes > &cqAttributes)
Creates a new instance of CqAttributesFactory ready to create a CqAttributes with the same settings a...
CqAttributesFactory()
Creates a new instance of AttributesFactory ready to create a CqAttributes with default settings.
void initCqListeners(const std::vector< std::shared_ptr< CqListener > > &cqListeners)
Removes all Cq listeners and then adds each listener in the specified array.

Apache Geode C++ Cache API Documentation