Infinispan HotRod C++ Client  8.2.1.Final
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ConnectionPoolConfiguration.h
Go to the documentation of this file.
1 #ifndef CONNECTIONPOOLCONFIGURATION_H_
2 #define CONNECTIONPOOLCONFIGURATION_H_
3 
5 
6 namespace infinispan {
7 namespace hotrod {
8 
9 #ifdef CREATE_NEW
10 #define WINDOWS_WORKAROUND_CREATE_NEW CREATE_NEW
11 #undef CREATE_NEW
12 #endif
13 
15 
16 #ifdef WINDOWS_WORKAROUND_CREATE_NEW
17 #define CREATE_NEW WINDOWS_WORKAROUND_CREATE_NEW
18 #undef WINDOWS_WORKAROUND_CREATE_NEW
19 #endif
20 
22 {
23  public:
25  bool lifo,
26  int maxActive,
27  int maxTotal,
28  long maxWait,
29  int maxIdle,
30  int minIdle,
31  int numTestsPerEvictionRun,
32  int timeBetweenEvictionRuns,
33  int minEvictableIdleTime,
34  bool testOnBorrow,
35  bool testOnReturn,
36  bool testWhileIdle);
37 
38  const ExhaustedAction& getExhaustedAction() const;
39  const bool& isLifo() const;
40  const int& getMaxActive() const;
41  const int& getMaxTotal() const;
42  const long& getMaxWait() const;
43  const int& getMaxIdle() const;
44  const int& getMinIdle() const;
45  const int& getNumTestsPerEvictionRun() const;
46  const int& getTimeBetweenEvictionRuns() const;
47  const int& getMinEvictableIdleTime() const;
48  const bool& isTestOnBorrow() const;
49  const bool& isTestOnReturn() const;
50  const bool& isTestWhileIdle() const;
51 
52  private:
54  // private so that it cannot be invoked
55  }
56 
57  ExhaustedAction exhaustedAction;
58  bool lifo;
59  int maxActive;
60  int maxTotal;
61  long maxWait;
62  int maxIdle;
63  int minIdle;
64  int numTestsPerEvictionRun;
65  int timeBetweenEvictionRuns;
66  int minEvictableIdleTime;
67  bool testOnBorrow;
68  bool testOnReturn;
69  bool testWhileIdle;
70 };
71 
72 }
73 }
74 
75 #endif /* CONNECTIONPOOLCONFIGURATION_H_ */
#define HR_EXTERN
Definition: ImportExport.h:35
Definition: ConnectionPoolConfiguration.h:14
Definition: ConnectionPoolConfiguration.h:14
ExhaustedAction
Definition: ConnectionPoolConfiguration.h:14
Definition: ConnectionPoolConfiguration.h:21
Definition: ConnectionPoolConfiguration.h:14