VMware Tanzu GemFire Native C++ Reference
10.1.5
|
Go to the documentation of this file.
30 #include "internal/chrono/duration.hpp"
31 #include "internal/geode_base.hpp"
32 #include "internal/geode_globals.hpp"
42 class AuthenticatedView;
63 class APACHE_GEODE_EXPORT
Pool :
public std::enable_shared_from_this<Pool> {
71 virtual const std::string&
getName()
const = 0;
208 virtual const std::shared_ptr<CacheableStringArray>
getLocators()
const = 0;
217 virtual const std::shared_ptr<CacheableStringArray>
getServers() = 0;
227 virtual void destroy(
bool keepAlive =
false) = 0;
287 explicit Pool(std::shared_ptr<PoolAttributes> attr);
288 std::shared_ptr<PoolAttributes> m_attrs;
302 std::shared_ptr<Properties> credentials, CacheImpl* cacheImpl);
308 friend class CacheImpl;
315 #endif // GEODE_POOL_H_
virtual bool isDestroyed() const =0
Indicates whether this Pool has been destroyed.
virtual const std::string & getName() const =0
Gets the name of the connection pool.
std::chrono::milliseconds getSubscriptionAckInterval() const
Returns the subscription ack interval of this pool.
std::chrono::milliseconds getLoadConditioningInterval() const
Returns the load conditioning interval of this pool.
std::chrono::milliseconds getFreeConnectionTimeout() const
Returns the connection timeout of this pool.
std::chrono::milliseconds getUpdateLocatorListInterval() const
Gets the update locator list interval for this pool.
int getPendingEventCount() const
Returns the approximate number of pending subscription events maintained at server for this durable c...
Creates an authenticated cache view to allow credential based access to region services.
Definition: AuthenticatedView.hpp:46
virtual const std::shared_ptr< CacheableStringArray > getLocators() const =0
Returns an unmodifiable list locators that this pool is using.
virtual void releaseThreadLocalConnection()=0
If this pool was configured to use threadlocalconnections, then this method will release the connecti...
A pool of connections to connect from a client to a set of Geode Cache Servers.
Definition: Pool.hpp:63
std::chrono::milliseconds getSubscriptionMessageTrackingTimeout() const
Returns the subscription message tracking timeout of this pool.
std::chrono::milliseconds getReadTimeout() const
Returns the read timeout of this pool.
bool getSubscriptionEnabled() const
Returns the true if a server-to-client subscriptions are enabled on this pool.
std::chrono::milliseconds getPingInterval() const
Gets the ping interval for this pool.
std::chrono::milliseconds getIdleTimeout() const
Gets the idle connection timeout for this pool.
Contains generic template definitions for Cacheable types and instantiations for built-in types.
int getSocketBufferSize() const
Returns the socket buffer size of this pool.
virtual const std::shared_ptr< CacheableStringArray > getServers()=0
Returns an unmodifiable list of servers this pool is using.
virtual void destroy(bool keepAlive=false)=0
Destroys this pool closing any connections it produced.
bool getThreadLocalConnections() const
Returns true if thread local connections are enabled on this pool.
std::chrono::milliseconds getStatisticInterval() const
Gets the statistic interval for this pool.
int getMinConnections() const
Gets the minimum connections for this pool.
bool getMultiuserAuthentication() const
Returns true if multiuser authentication is enabled on this pool.
const std::string & getServerGroup() const
Returns the server group of this pool.
int getMaxConnections() const
Gets the maximum connections for this pool.
int getSubscriptionRedundancy() const
Returns the subscription redundancy level of this pool.
This interface provides for the configuration and creation of instances of Pool.
Definition: PoolFactory.hpp:68
int getRetryAttempts() const
Gets the retry attempts for this pool.
virtual std::shared_ptr< QueryService > getQueryService()=0
Returns the QueryService for this Pool.
Top level class for configuring and using Geode on a client.This should be called once to create Cach...
Definition: CacheFactory.hpp:48
bool getPRSingleHopEnabled() const
Returns true if single-hop optimization is enabled on this pool.
Apache Geode C++ Cache API Documentation