VMware GemFire Native C++ Reference
9.2.4
CacheLoader.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#ifndef GEODE_CACHELOADER_H_
4
#define GEODE_CACHELOADER_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
27
#include "geode_globals.hpp"
28
#include "
geode_types.hpp
"
29
#include "
CacheableKey.hpp
"
30
#include "
Cacheable.hpp
"
31
#include "
UserData.hpp
"
32
33
namespace
apache
{
34
namespace
geode
{
35
namespace
client {
36
56
class
CPPCACHE_EXPORT
CacheLoader
:
public
SharedBase
{
57
public
:
71
virtual
CacheablePtr
load(
const
RegionPtr
& rp,
const
CacheableKeyPtr
& key,
72
const
UserDataPtr
& aCallbackArgument) = 0;
73
89
virtual
void
close(
const
RegionPtr
& rp);
90
91
virtual
~
CacheLoader
();
92
93
protected
:
94
CacheLoader
();
95
96
protected
:
97
// never implemented.
98
CacheLoader
(
const
CacheLoader
& other);
99
void
operator=(
const
CacheLoader
& other);
100
};
101
}
// namespace client
102
}
// namespace geode
103
}
// namespace apache
104
105
#endif // GEODE_CACHELOADER_H_
CacheableKey.hpp
apache
Each enum represents a predefined RegionAttributes in a {}.
Definition:
Assert.hpp:31
Cacheable.hpp
geode_types.hpp
geode
UserData.hpp
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::CacheLoader
Definition:
CacheLoader.hpp:56
apache::geode::client::SharedPtr
Defines a reference counted shared pointer.
Definition:
SharedPtr.hpp:52
Pivotal GemFire C++ Cache API Documentation