Infinispan HotRod C++ Client 9.2.0.Final
Loading...
Searching...
No Matches
ConnectionPoolConfiguration.h
Go to the documentation of this file.
1#ifndef CONNECTIONPOOLCONFIGURATION_H_
2#define CONNECTIONPOOLCONFIGURATION_H_
3
5
6namespace infinispan {
7namespace 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
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:22
ConnectionPoolConfiguration(ExhaustedAction exhaustedAction, bool lifo, int maxActive, int maxTotal, long maxWait, int maxIdle, int minIdle, int numTestsPerEvictionRun, int timeBetweenEvictionRuns, int minEvictableIdleTime, bool testOnBorrow, bool testOnReturn, bool testWhileIdle)
const ExhaustedAction & getExhaustedAction() const
ExhaustedAction
Definition: ConnectionPoolConfiguration.h:14
@ WAIT
Definition: ConnectionPoolConfiguration.h:14
@ CREATE_NEW
Definition: ConnectionPoolConfiguration.h:14
@ EXCEPTION
Definition: ConnectionPoolConfiguration.h:14
Definition: AuthenticationConfiguration.h:10