1#ifndef CHECKPOINT_COMMUNICATOR_H
2#define CHECKPOINT_COMMUNICATOR_H
30 virtual
bool TrySend(uint32_t checkpoint) = 0;
An abstract class to communicate a checkpoint between an application and the PHM cluster.
Definition: checkpoint_communicator.h:15
void SetCallback(CheckpointReception &&callback)
Set a callback to be invoked at a checkpoint reception.
Definition: checkpoint_communicator.cpp:7
virtual bool TrySend(uint32_t checkpoint)=0
Try to send a checkpoint occurrence.
CheckpointReception Callback
Callback to be invoked at a checkpoint reception.
Definition: checkpoint_communicator.h:22
void ResetCallback() noexcept
Reset the callback to be invoked at a checkpoint reception.
Definition: checkpoint_communicator.cpp:12
std::function< void(uint32_t)> CheckpointReception
Callback type for checkpoint reception.
Definition: checkpoint_communicator.h:18