diff options
author | Gordon Sim <gsim@apache.org> | 2006-12-06 12:01:40 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2006-12-06 12:01:40 +0000 |
commit | c017c1cd768a88c7e74076b660be36902059528a (patch) | |
tree | 027de49a21a56ef7ac3952b7230028ec9c883b90 /cpp/lib/broker/Configuration.h | |
parent | 905c59a988010c9db7f64ee90f9d0b6e1011f0d0 (diff) | |
download | qpid-python-c017c1cd768a88c7e74076b660be36902059528a.tar.gz |
Added new configuration option for staging threshold (size above which messages
will be written to disk as content arrives rather than accumulating that content
in memory). Pass this through to all channels and to the store on recovery.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@483046 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/Configuration.h')
-rw-r--r-- | cpp/lib/broker/Configuration.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cpp/lib/broker/Configuration.h b/cpp/lib/broker/Configuration.h index 3f2ffd1662..0351601807 100644 --- a/cpp/lib/broker/Configuration.h +++ b/cpp/lib/broker/Configuration.h @@ -63,6 +63,20 @@ namespace qpid { virtual void setValue(int _value) { value = _value; } }; + class LongOption : public Option{ + const long defaultValue; + int value; + public: + LongOption(char flag, const std::string& name, const std::string& desc, const long value = 0); + LongOption(const std::string& name, const std::string& desc, const long value = 0); + virtual ~LongOption(); + + long getValue() const; + virtual bool needsValue() const; + virtual void setValue(const std::string& value); + virtual void setValue(int _value) { value = _value; } + }; + class StringOption : public Option{ const std::string defaultValue; std::string value; @@ -96,6 +110,7 @@ namespace qpid { IntOption maxConnections; IntOption connectionBacklog; StringOption store; + LongOption stagingThreshold; BoolOption help; BoolOption version; char const *programName; @@ -123,6 +138,7 @@ namespace qpid { int getMaxConnections() const; int getConnectionBacklog() const; const std::string& getStore() const; + long getStagingThreshold() const; void setHelp(bool b) { help.setValue(b); } void setVersion(bool b) { version.setValue(b); } @@ -132,6 +148,7 @@ namespace qpid { void setMaxConnections(int i) { maxConnections.setValue(i); } void setConnectionBacklog(int i) { connectionBacklog.setValue(i); } void setStore(const std::string& s) { store.setValue(s); } + void setStagingThreshold(long l) { stagingThreshold.setValue(l); } void usage(); }; |