VMware GemFire Native C++ Reference
9.2.4
|
Go to the documentation of this file.
3 #ifndef GEODE_DISKPOLICYTYPE_H_
4 #define GEODE_DISKPOLICYTYPE_H_
26 #include "geode_globals.hpp"
43 typedef enum { NONE = 0, OVERFLOWS, PERSIST } PolicyType;
46 static const char* fromOrdinal(
const uint8_t ordinal);
49 static PolicyType fromName(
const char* name);
55 return (type == DiskPolicyType::OVERFLOWS);
60 return (type == DiskPolicyType::NONE);
64 return (type == DiskPolicyType::PERSIST);
70 static const char* names[];
76 #endif // GEODE_DISKPOLICYTYPE_H_
Each enum represents a predefined RegionAttributes in a {}.
Definition: Assert.hpp:31
static bool isOverflow(const PolicyType type)
Returns whether this is one of the overflow to disk type.
Definition: DiskPolicyType.hpp:54
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition: geode_base.hpp:58
static bool isNone(const PolicyType type)
Return whether this is NONE.
Definition: DiskPolicyType.hpp:59
Definition: DiskPolicyType.hpp:37
static bool isPersist(const PolicyType type)
Return whether this is persist.
Definition: DiskPolicyType.hpp:63
PolicyType
Values for setting PolicyType.
Definition: DiskPolicyType.hpp:43
Pivotal GemFire C++ Cache API Documentation