VMware GemFire Native C++ Reference  9.1
CacheWriter.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #ifndef GEODE_CACHEWRITER_H_
4 #define GEODE_CACHEWRITER_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 "geode_globals.hpp"
24 #include "geode_types.hpp"
25 
31 namespace apache {
32 namespace geode {
33 namespace client {
34 
35 class EntryEvent;
36 class RegionEvent;
91  public:
108  virtual bool beforeUpdate(const EntryEvent& event);
109 
126  virtual bool beforeCreate(const EntryEvent& event);
127 
140  virtual bool beforeDestroy(const EntryEvent& event);
141 
142  /*@brief called before this region is cleared
143  * @param event EntryEvent denotes the event object associated with clearing
144  * the region
145  *
146  * @see Region::clear
147  */
148  virtual bool beforeRegionClear(const RegionEvent& event);
149 
150  /*@brief called before this region is destroyed
151  * @param event EntryEvent denotes the event object associated with destroying
152  * the region
153  *
154  * @see Region::destroyRegion
155  */
156  virtual bool beforeRegionDestroy(const RegionEvent& event);
157 
172  virtual void close(const RegionPtr& rp);
173 
174  virtual ~CacheWriter();
175 
176  protected:
177  CacheWriter();
178 
179  private:
180  // never implemented.
181  CacheWriter(const CacheWriter& other);
182  void operator=(const CacheWriter& other);
183 };
184 } // namespace client
185 } // namespace geode
186 } // namespace apache
187 
188 #endif // GEODE_CACHEWRITER_H_
Each enum represents a predefined RegionAttributes in a Cache.
Definition: Assert.hpp:31
An application plug-in that can be installed on the region.
Definition: CacheWriter.hpp:90
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition: geode_base.hpp:58
Declares region events.
Definition: RegionEvent.hpp:38
This abstract base class is the base class of all user objects that have the shared capability of ref...
Definition: SharedBase.hpp:40
Represents an entry event affecting an entry, including its identity and the the circumstances of the...
Definition: EntryEvent.hpp:37
This namespace contains all the Geode C++ API classes, enumerations and globals.

Pivotal GemFire C++ Cache API Documentation