diff options
| author | Alan Conway <aconway@apache.org> | 2013-04-19 02:00:16 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2013-04-19 02:00:16 +0000 |
| commit | d4c8ebc4ed199b257bcc74ef263ffd1ea1f770fd (patch) | |
| tree | e843816907ba08e643ecd64a9b07f0b30b183b92 /qpid/cpp/include | |
| parent | cb033e84b242f61b50a71ea65791d6bb618a6054 (diff) | |
| download | qpid-python-d4c8ebc4ed199b257bcc74ef263ffd1ea1f770fd.tar.gz | |
QPID-4748: Consistent handling of durations in broker configuration, allowing sub-second intervals.
Provides string conversion for sys::Duration, allowing intervals to be expressed like this:
10.5 - value in seconds, backward compatible.
10.5s - value in seconds
10.5ms - value in milliseconds
10.5us - value in microseconds
10.5ns - value in nanoseconds
Converted the folllowing broker options to Duration:
mgmtPubInterval, queueCleanInterval, linkMaintenanceInterval, linkHeartbeatInterval
Did not convert: maxNegotiateTime. This is expressed in milliseconds so it would not be
backward compatible to make it a Duration.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1469661 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/include')
| -rw-r--r-- | qpid/cpp/include/qpid/sys/Time.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qpid/cpp/include/qpid/sys/Time.h b/qpid/cpp/include/qpid/sys/Time.h index 9c5ac66e9a..8e99356409 100644 --- a/qpid/cpp/include/qpid/sys/Time.h +++ b/qpid/cpp/include/qpid/sys/Time.h @@ -125,6 +125,7 @@ public: }; std::ostream& operator << (std::ostream&, const Duration&); +std::istream& operator >> (std::istream&, Duration&); inline AbsTime now() { return AbsTime::now(); } |
