Pivotal GemFire Native Client Cache Reference  9.0.6
Pool.hpp
Go to the documentation of this file.
1 #ifndef __GEMFIRE_POOL_HPP__
2 #define __GEMFIRE_POOL_HPP__
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 "SharedBase.hpp"
13 #include "gf_types.hpp"
14 #include "CacheableBuiltins.hpp"
15 #include "Cache.hpp"
16 #include "CacheFactory.hpp"
21 namespace gemfire
22 {
23 class Cache;
24 class CacheFactory;
25 class PoolAttributes;
39 public:
46  virtual const char* getName()const = 0;
47 
52  int getFreeConnectionTimeout()const;
57  int getLoadConditioningInterval()const;
62  int getSocketBufferSize()const;
67  int getReadTimeout()const;
72  int getMinConnections()const;
77  int getMaxConnections()const;
82  long getIdleTimeout()const;
87  long getPingInterval()const;
92  long getUpdateLocatorListInterval()const;
97  int getStatisticInterval()const;
102  int getRetryAttempts()const;
107  bool getSubscriptionEnabled()const;
112  int getSubscriptionRedundancy()const;
117  int getSubscriptionMessageTrackingTimeout()const;
122  int getSubscriptionAckInterval()const;
123 
128  const char* getServerGroup()const;
129 
134  bool getThreadLocalConnections() const;
135 
140  bool getMultiuserAuthentication() const;
141 
146  bool getPRSingleHopEnabled() const;
147 
156  virtual void releaseThreadLocalConnection() = 0;
157 
165  virtual const CacheableStringArrayPtr getLocators()const = 0;
166 
173  virtual const CacheableStringArrayPtr getServers() = 0;
174 
183  virtual void destroy(bool keepAlive = false) = 0;
184 
191  virtual bool isDestroyed()const = 0;
192 
193 
205  virtual QueryServicePtr getQueryService() = 0;
206 
207  virtual ~Pool();
208 
241  int getPendingEventCount() const;
242 
243 protected:
244  Pool(PoolAttributesPtr attr);
245  PoolAttributesPtr m_attrs;
246 
247 private:
256  virtual RegionServicePtr createSecureUserCache(PropertiesPtr credentials);
257 
258  Pool(const Pool&);
259 
260  friend class PoolFactory;
261  friend class CacheFactory;
262  friend class Cache;
263 };
264 } //namespace gemfire
265 
266 #endif //ifndef __GEMFIRE_POOL_HPP__
Top level class for configuring and using GemFire on a client.This should be called once to create Ca...
Definition: CacheFactory.hpp:33
Contains generic template definitions for Cacheable types and instantiations for built-in types...
A pool of connections to connect from a client to a set of GemFire Cache Servers. ...
Definition: Pool.hpp:38
Template class for CacheableArrayType SharedPtr's that adds [] operator.
Definition: CacheableBuiltins.hpp:154
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
#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
This interface provides for the configuration and creation of instances of Pool.
Definition: PoolFactory.hpp:51
Cache are obtained from create method on the CacheFactory#create class.
Definition: Cache.hpp:44
Defines a reference counted shared pointer.
Definition: SharedPtr.hpp:35

GemFire C++ Cache API Documentation