blob: f0efe1ba9077c938c0f2878cd7ece464f1d4676f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "heart_beat_job.h"
namespace proton {
HeartBeatJob::HeartBeatJob(IHeartBeatHandler &handler,
const DocumentDBHeartBeatConfig &config)
: IMaintenanceJob("heart_beat", config.getInterval(), config.getInterval()),
_handler(handler)
{
}
bool
HeartBeatJob::run()
{
_handler.heartBeat();
return true;
}
} // namespace proton
|