Mercurial > hg > orthanc-transfers
diff Plugin/PluginContext.h @ 10:c9e28e31262e
new option: MaxHttpRetries
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Mar 2019 15:26:49 +0100 |
parents | 7e207ade2f1a |
children | b06103a50c95 |
line wrap: on
line diff
--- a/Plugin/PluginContext.h Mon Dec 24 13:45:31 2018 +0100 +++ b/Plugin/PluginContext.h Mon Mar 04 15:26:49 2019 +0100 @@ -40,12 +40,13 @@ // Configuration size_t threadsCount_; size_t targetBucketSize_; - + unsigned int maxHttpRetries_; PluginContext(size_t threadsCount, size_t targetBucketSize, size_t maxPushTransactions, - size_t memoryCacheSize); + size_t memoryCacheSize, + unsigned int maxHttpRetries); static std::auto_ptr<PluginContext>& GetSingleton(); @@ -80,10 +81,16 @@ return targetBucketSize_; } + unsigned int GetMaxHttpRetries() const + { + return maxHttpRetries_; + } + static void Initialize(size_t threadsCount, size_t targetBucketSize, size_t maxPushTransactions, - size_t memoryCacheSize); + size_t memoryCacheSize, + unsigned int maxHttpRetries); static PluginContext& GetInstance();