1 #include "hmbdc/Copyright.hpp" 3 #include "hmbdc/app/Client.hpp" 8 namespace hmbdc {
namespace app {
namespace utils {
11 template <
typename Buffer>
13 :
Client<StuckClientPurger<Buffer>> {
16 : secondsBewteenPurges_(secondsBewteenPurges)
21 void invokedCb(uint16_t)
override {
24 if (secondsBewteenPurges_ == secondsCurrent_) {
25 auto res = buffer_.purge();
27 cerr <<
"purgedMask=" << hex << res << dec << endl;
34 void stoppedCb(exception
const& e) {
35 cerr << e.what() << endl;
38 char const* hmbdcName()
const {
42 tuple<char const*, int> schedSpec()
const {
43 return make_tuple(
"SCHED_IDLE", 0);
47 uint32_t secondsBewteenPurges_;
48 uint32_t secondsCurrent_;
Definition: StuckClientPurger.hpp:12
Definition: TypedString.hpp:74
Definition: Message.hpp:46
Definition: Client.hpp:39
Definition: Client.hpp:11