VMware Tanzu GemFire Native C++ Reference 10.3.0
CqEvent.hpp
Go to the documentation of this file.
1#pragma once
2
3#ifndef GEODE_CQEVENT_H_
4#define GEODE_CQEVENT_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 "CacheableBuiltins.hpp"
24#include "CacheableKey.hpp"
25#include "CqOperation.hpp"
26#include "Exception.hpp"
27#include "Serializable.hpp"
28#include "internal/geode_globals.hpp"
29
34namespace apache {
35namespace geode {
36namespace client {
37class CqQuery;
53class APACHE_GEODE_EXPORT CqEvent {
54 public:
55 CqEvent() {}
56
57 virtual ~CqEvent() {}
63 virtual std::shared_ptr<CqQuery> getCq() const = 0;
64
69 virtual CqOperation getBaseOperation() const = 0;
70
76 virtual CqOperation getQueryOperation() const = 0;
77
84 virtual std::shared_ptr<CacheableKey> getKey() const = 0;
85
92 virtual std::shared_ptr<Cacheable> getNewValue() const = 0;
93
100 virtual std::shared_ptr<CacheableBytes> getDeltaValue() const = 0;
101
102 private:
103 CqEvent(const CqEvent&);
104 void operator=(const CqEvent&);
105};
106} // namespace client
107} // namespace geode
108} // namespace apache
109
110#endif // GEODE_CQEVENT_H_
Contains generic template definitions for Cacheable types and instantiations for built-in types.
This interface provides methods to get all the information sent from the server about the CQ event.
Definition: CqEvent.hpp:53
virtual CqOperation getQueryOperation() const =0
Get the operation on the query results.
virtual std::shared_ptr< CacheableKey > getKey() const =0
Get the key relating to the event.
virtual std::shared_ptr< CqQuery > getCq() const =0
Get the CqQuery object of this event.
virtual std::shared_ptr< Cacheable > getNewValue() const =0
Get the new value of the modification.
virtual std::shared_ptr< CacheableBytes > getDeltaValue() const =0
Get the delta modification.
virtual CqOperation getBaseOperation() const =0
Get the operation on the base region that triggered this event.

Apache Geode C++ Cache API Documentation