comparison PostgreSQL/Plugins/PostgreSQLStorageArea.h @ 141:0b3e9ee53c46

Added 'MaximumConnectionRetries' & 'ConnectionRetryInterval' to configure the retries when connecting to the DB at startup
author Alain Mazy <alain@mazy.be>
date Mon, 03 Feb 2020 22:29:51 +0100
parents 4cd7e45b671e
children 6fe74f9a516e
comparison
equal deleted inserted replaced
140:4cd7e45b671e 141:0b3e9ee53c46
47 47
48 virtual IDatabase* Open() 48 virtual IDatabase* Open()
49 { 49 {
50 return that_.OpenInternal(); 50 return that_.OpenInternal();
51 } 51 }
52
53 virtual void GetConnectionRetriesParameters(unsigned int& maxConnectionRetries, unsigned int& connectionRetryInterval)
54 {
55 maxConnectionRetries = that_.parameters_.GetMaxConnectionRetries();
56 connectionRetryInterval = that_.parameters_.GetConnectionRetryInterval();
57 }
52 }; 58 };
53 59
54 OrthancPluginContext* context_; 60 OrthancPluginContext* context_;
55 PostgreSQLParameters parameters_; 61 PostgreSQLParameters parameters_;
56 bool clearAll_; 62 bool clearAll_;