Updated HeartbeatScheduler with abstract methods to be implemented by the replica