diff options
author | Alan Conway <aconway@apache.org> | 2012-02-13 16:19:02 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2012-02-13 16:19:02 +0000 |
commit | 5f9feb8192404dae5c73ce9fbdf41a78826576a6 (patch) | |
tree | 18b4d05ec2207fdae5c005bc3aa6879828538cb4 /qpid/cpp/src/qpid/broker/Link.cpp | |
parent | 2af6b56cc92ae88bf587fb32393edb67e66a02a1 (diff) | |
download | qpid-python-5f9feb8192404dae5c73ce9fbdf41a78826576a6.tar.gz |
QPID-3603: Make link maintenance interval configurable.qpid-3603-2
HA code needs faster reconnects than federation.
This is a temporary solution till we have a more robust
and rapid reconnect mechanism in place.
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-3603-2@1243586 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/broker/Link.cpp')
-rw-r--r-- | qpid/cpp/src/qpid/broker/Link.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/broker/Link.cpp b/qpid/cpp/src/qpid/broker/Link.cpp index e896b3238b..e3b2b1f29c 100644 --- a/qpid/cpp/src/qpid/broker/Link.cpp +++ b/qpid/cpp/src/qpid/broker/Link.cpp @@ -50,10 +50,13 @@ namespace _qmf = ::qmf::org::apache::qpid::broker; struct LinkTimerTask : public sys::TimerTask { LinkTimerTask(Link& l, sys::Timer& t) - : TimerTask(/*FIXME*/100*sys::TIME_MSEC, "Link retry timer"), link(l), timer(t) {} + : TimerTask(int64_t(l.getBroker()->getOptions().linkMaintenanceInterval* + sys::TIME_SEC), + "Link retry timer"), + link(l), timer(t) {} void fire() { - link.maintenanceVisit(); // FIXME aconway 2012-01-31: + link.maintenanceVisit(); setupNextFire(); timer.add(this); } |