3 #ifndef GEODE_POOLFACTORY_H_ 4 #define GEODE_POOLFACTORY_H_ 23 #include "geode_globals.hpp" 73 static const int DEFAULT_FREE_CONNECTION_TIMEOUT = 10000;
81 static const int DEFAULT_LOAD_CONDITIONING_INTERVAL = 1000 * 60 * 5;
88 static const int DEFAULT_SOCKET_BUFFER_SIZE = 32768;
95 static const int DEFAULT_READ_TIMEOUT = 10000;
101 static const int DEFAULT_MIN_CONNECTIONS = 1;
107 static const int DEFAULT_MAX_CONNECTIONS = -1;
114 static const long DEFAULT_IDLE_TIMEOUT = 5000;
121 static const int DEFAULT_RETRY_ATTEMPTS = -1;
127 static const long DEFAULT_PING_INTERVAL = 10000;
133 static const long DEFAULT_UPDATE_LOCATOR_LIST_INTERVAL = 5000;
140 static const int DEFAULT_STATISTIC_INTERVAL = -1;
154 static const bool DEFAULT_SUBSCRIPTION_ENABLED =
false;
162 static const int DEFAULT_SUBSCRIPTION_REDUNDANCY = 0;
170 static const int DEFAULT_SUBSCRIPTION_MESSAGE_TRACKING_TIMEOUT = 900000;
178 static const int DEFAULT_SUBSCRIPTION_ACK_INTERVAL = 100;
189 static const bool DEFAULT_THREAD_LOCAL_CONN =
false;
195 static const bool DEFAULT_MULTIUSER_SECURE_MODE =
false;
201 static const bool DEFAULT_PR_SINGLE_HOP_ENABLED =
true;
217 void setFreeConnectionTimeout(
int connectionTimeout);
229 void setLoadConditioningInterval(
int loadConditioningInterval);
241 void setSocketBufferSize(
int bufferSize);
260 void setThreadLocalConnections(
bool threadLocalConnections);
271 void setReadTimeout(
int timeout);
285 void setMinConnections(
int minConnections);
300 void setMaxConnections(
int maxConnections);
317 void setIdleTimeout(
long idleTimeout);
328 void setRetryAttempts(
int retryAttempts);
347 void setPingInterval(
long pingInterval);
357 void setUpdateLocatorListInterval(
long updateLocatorListInterval);
371 void setStatisticInterval(
int statisticInterval);
381 void setServerGroup(
const char* group);
400 void addLocator(
const char* host,
int port);
417 void addServer(
const char* host,
int port);
427 void setSubscriptionEnabled(
bool enabled);
441 void setSubscriptionRedundancy(
int redundancy);
456 void setSubscriptionMessageTrackingTimeout(
int messageTrackingTimeout);
470 void setSubscriptionAckInterval(
int ackInterval);
478 void setMultiuserAuthentication(
bool multiuserAuthentication);
497 PoolPtr create(
const char* name);
519 void setPRSingleHopEnabled(
bool enabled);
526 void addCheck(
const char* host,
int port);
528 bool m_isSubscriptionRedundancy;
529 bool m_addedServerOrLocator;
533 friend class CacheXmlCreation;
539 #endif // GEODE_POOLFACTORY_H_ Each enum represents a predefined RegionAttributes in a Cache.
Definition: Assert.hpp:31
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition: geode_base.hpp:58
Top level class for configuring and using Geode on a client.This should be called once to create Cach...
Definition: CacheFactory.hpp:48
Defines a reference counted shared pointer.
Definition: SharedPtr.hpp:52
This abstract base class is the base class of all user objects that have the shared capability of ref...
Definition: SharedBase.hpp:40
Manages creation and access to connection pools for clients.
Definition: PoolManager.hpp:45
static const char * DEFAULT_SERVER_GROUP
The default server group.
Definition: PoolFactory.hpp:184
This interface provides for the configuration and creation of instances of Pool.
Definition: PoolFactory.hpp:66
This namespace contains all the Geode C++ API classes, enumerations and globals.
Cache are obtained from create method on the CacheFactory#create class.
Definition: Cache.hpp:59