VMware Tanzu GemFire Native C++ Reference
10.1.5
|
20 #ifndef GEODE_POOLMANAGER_H_
21 #define GEODE_POOLMANAGER_H_
26 #include <unordered_map>
32 #include "geode/HashMapOfPools.hpp"
33 #include "internal/geode_base.hpp"
34 #include "internal/geode_globals.hpp"
41 class FunctionService;
42 class PoolManagerImpl;
43 class ThinClientPoolDM;
80 const HashMapOfPools&
getAll()
const;
89 std::shared_ptr<Pool>
find(
const std::string& name)
const;
98 std::shared_ptr<Pool>
find(
const std::shared_ptr<Region>& region)
const;
110 void removePool(
const std::string& name);
112 void addPool(std::string name,
const std::shared_ptr<Pool>& pool);
114 const std::shared_ptr<Pool>& getDefaultPool()
const;
116 std::shared_ptr<PoolManagerImpl> m_pimpl;
124 friend ThinClientPoolDM;
131 #endif // GEODE_POOLMANAGER_H_
Manages creation and access to connection pools for clients.
Definition: PoolManager.hpp:61
Caches are obtained from the create method on the CacheFactory#create class.
Definition: Cache.hpp:67
std::shared_ptr< Pool > find(const std::shared_ptr< Region > ®ion) const
Find the pool used by the given region.
PoolFactory createFactory() const
Creates a new pool factory, which is used to configure and create new Pools.
void close(bool keepAlive=false)
Unconditionally destroys all created pools that are in this manager.
entry point for function execution
Definition: FunctionService.hpp:45
const HashMapOfPools & getAll() const
Returns a map containing all the pools in this manager.
Provides for the configuration and creation of instances of Region.
Definition: RegionFactory.hpp:43
This interface provides for the configuration and creation of instances of Pool.
Definition: PoolFactory.hpp:68
std::shared_ptr< Pool > find(const std::string &name) const
Find by name an existing connection pool returning the existing pool or nullptr if it does not exist.
Apache Geode C++ Cache API Documentation