VMware Tanzu GemFire Native C++ Reference  10.1.5
CqListener.hpp
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #pragma once
19 
20 #ifndef GEODE_CQLISTENER_H_
21 #define GEODE_CQLISTENER_H_
22 
23 #include "CqEvent.hpp"
24 #include "internal/geode_globals.hpp"
25 
26 namespace apache {
27 namespace geode {
28 namespace client {
29 
30 class CacheListener;
31 
40 class APACHE_GEODE_EXPORT CqListener {
41  public:
42  virtual ~CqListener() noexcept = default;
43 
44  CqListener();
45  CqListener(const CacheListener& other) = delete;
46 
47  void operator=(const CqListener& other) = delete;
48 
54  virtual void onEvent(const CqEvent& aCqEvent);
55 
63  virtual void onError(const CqEvent& aCqEvent);
64 
83  virtual void close();
84 };
85 } // namespace client
86 } // namespace geode
87 } // namespace apache
88 
89 #endif // GEODE_CQLISTENER_H_
apache::geode::client::CacheListener
An application plug-in that can be installed on a region.
Definition: CacheListener.hpp:79
apache::geode::client::CqListener::onError
virtual void onError(const CqEvent &aCqEvent)
This method is invoked when there is an error during CQ processing.
apache::geode::client::CqListener::close
virtual void close()
Called when the region containing this callback is closed or destroyed, when the cache is closed,...
apache::geode::client::CqListener
Application plug-in interface for handling continuous query events after they occur.
Definition: CqListener.hpp:40
apache::geode::client::CqListener::onEvent
virtual void onEvent(const CqEvent &aCqEvent)
This method is invoked when an event is occurred on the region that satisfied the query condition of ...
CqEvent.hpp
apache::geode::client::CqEvent
This interface provides methods to get all the information sent from the server about the CQ event.
Definition: CqEvent.hpp:53

Apache Geode C++ Cache API Documentation