VMware GemFire Native C++ Reference
9.2.4
CacheListener.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#ifndef GEODE_CACHELISTENER_H_
4
#define GEODE_CACHELISTENER_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
#include "
SharedPtr.hpp
"
26
31
namespace
apache
{
32
namespace
geode
{
33
namespace
client {
34
35
class
EntryEvent;
36
class
RegionEvent;
37
78
class
CPPCACHE_EXPORT
CacheListener
:
public
SharedBase
{
82
public
:
86
virtual
~
CacheListener
();
87
98
virtual
void
afterCreate(
const
EntryEvent
& event);
99
110
virtual
void
afterUpdate(
const
EntryEvent
& event);
111
118
virtual
void
afterInvalidate(
const
EntryEvent
& event);
119
127
virtual
void
afterDestroy(
const
EntryEvent
& event);
128
138
virtual
void
afterRegionInvalidate(
const
RegionEvent
& event);
139
150
virtual
void
afterRegionDestroy(
const
RegionEvent
& event);
151
162
virtual
void
afterRegionClear(
const
RegionEvent
& event);
163
170
virtual
void
afterRegionLive(
const
RegionEvent
& event);
171
187
virtual
void
close(
const
RegionPtr
& region);
196
virtual
void
afterRegionDisconnected(
const
RegionPtr
& region);
197
198
protected
:
202
CacheListener
();
203
204
private
:
205
// never implemented.
206
CacheListener
(
const
CacheListener
& other);
207
void
operator=(
const
CacheListener
& other);
208
};
209
}
// namespace client
210
}
// namespace geode
211
}
// namespace apache
212
213
#endif // GEODE_CACHELISTENER_H_
apache
Each enum represents a predefined RegionAttributes in a {}.
Definition:
Assert.hpp:31
apache::geode::client::CacheListener
Definition:
CacheListener.hpp:78
apache::geode::client::RegionEvent
Declares region events.
Definition:
RegionEvent.hpp:38
geode_types.hpp
SharedPtr.hpp
apache::geode::client::EntryEvent
Represents an entry event affecting an entry, including its identity and the the circumstances of the...
Definition:
EntryEvent.hpp:37
geode
CPPCACHE_EXPORT
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition:
geode_base.hpp:58
apache::geode::client::SharedBase
Definition:
SharedBase.hpp:40
apache::geode::client::SharedPtr< Region >
Pivotal GemFire C++ Cache API Documentation