comparison MySQL/Plugins/MySQLStorageArea.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
48 48
49 virtual IDatabase* Open() 49 virtual IDatabase* Open()
50 { 50 {
51 return that_.OpenInternal(); 51 return that_.OpenInternal();
52 } 52 }
53
54 virtual void GetConnectionRetriesParameters(unsigned int& maxConnectionRetries, unsigned int& connectionRetryInterval)
55 {
56 maxConnectionRetries = that_.parameters_.GetMaxConnectionRetries();
57 connectionRetryInterval = that_.parameters_.GetConnectionRetryInterval();
58 }
53 }; 59 };
54 60
55 OrthancPluginContext* context_; 61 OrthancPluginContext* context_;
56 MySQLParameters parameters_; 62 MySQLParameters parameters_;
57 bool clearAll_; 63 bool clearAll_;