Pivotal GemFire Native Client Cache Reference  9.0.6
AttributesMutator.hpp
Go to the documentation of this file.
1 #ifndef __GEMFIRE_ATTRIBUTESMUTATOR_H__
2 #define __GEMFIRE_ATTRIBUTESMUTATOR_H__
3 /*=========================================================================
4  * Copyright (c) 2002-2014 Pivotal Software, Inc. All Rights Reserved.
5  * This product is protected by U.S. and international copyright
6  * and intellectual property laws. Pivotal products are covered by
7  * more patents listed at http://www.pivotal.io/patents.
8  *========================================================================
9  */
10 
11 #include "gfcpp_globals.hpp"
12 #include "gf_types.hpp"
13 #include "ExpirationAction.hpp"
18 namespace gemfire {
19 
20 class CacheListener;
21 class CacheLoader;
22 class CacheWriter;
23 
40 
41 private:
42 
43  RegionPtr m_region;
44 
45 public:
46 
49  AttributesMutator( const RegionPtr& region );
50 
51  virtual ~AttributesMutator();
52 
59  int32_t setEntryIdleTimeout(int32_t idleTimeout);
60 
65  ExpirationAction::Action setEntryIdleTimeoutAction( ExpirationAction::Action action );
66 
73  int32_t setEntryTimeToLive(int32_t timeToLive);
74 
79  ExpirationAction::Action setEntryTimeToLiveAction(ExpirationAction::Action action);
80 
87  int32_t setRegionIdleTimeout(int32_t idleTimeout);
88 
93  ExpirationAction::Action setRegionIdleTimeoutAction(ExpirationAction::Action action);
94 
101  int32_t setRegionTimeToLive(int32_t timeToLive);
102 
107  ExpirationAction::Action setRegionTimeToLiveAction(ExpirationAction::Action action);
108 
115  uint32_t setLruEntriesLimit( uint32_t entriesLimit );
116 
121  void setCacheListener(const CacheListenerPtr& aListener);
122 
128  void setCacheListener(const char* libpath, const char* factoryFuncName);
129 
134  void setCacheLoader(const CacheLoaderPtr& aLoader);
135 
141  void setCacheLoader(const char* libpath, const char* factoryFuncName);
142 
147  void setCacheWriter(const CacheWriterPtr& aWriter);
148 
154  void setCacheWriter(const char* libpath, const char* factoryFuncName);
155 
156 };
157 
158 }; //namespace gemfire
159 #endif //ifndef __GEMFIRE_ATTRIBUTESMUTATOR_H__
Action
Definition: ExpirationAction.hpp:29
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
Supports modification of certain region attributes after the region has been created.
Definition: AttributesMutator.hpp:39
#define CPPCACHE_EXPORT
Defines a GemFire CPPCACHE export.
Definition: gf_base.hpp:51
This abstract base class is the base class of all user objects that have the shared capability of ref...
Definition: SharedBase.hpp:31

GemFire C++ Cache API Documentation