diff 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
line wrap: on
line diff
--- a/MySQL/Plugins/MySQLStorageArea.h	Fri Jan 31 17:24:29 2020 +0100
+++ b/MySQL/Plugins/MySQLStorageArea.h	Mon Feb 03 22:29:51 2020 +0100
@@ -50,6 +50,12 @@
       {
         return that_.OpenInternal();
       }
+
+      virtual void GetConnectionRetriesParameters(unsigned int& maxConnectionRetries, unsigned int& connectionRetryInterval)
+      {
+        maxConnectionRetries = that_.parameters_.GetMaxConnectionRetries();
+        connectionRetryInterval = that_.parameters_.GetConnectionRetryInterval();
+      }
     };
 
     OrthancPluginContext*  context_;