#2359 - Rename plugin api methods with deprecation - QueryPlanMetric

This commit is contained in:
rbygrave
2021-09-08 10:53:32 +12:00
parent 8b98335e2e
commit a15e1ae0a7
3 changed files with 11 additions and 3 deletions
@@ -10,7 +10,15 @@ public interface QueryPlanMetric {
/**
* Return the underlying timed metric.
*/
TimedMetric getMetric();
TimedMetric metric();
/**
* Deprecated migrate to metric().
*/
@Deprecated
default TimedMetric getMetric() {
return metric();
}
/**
* Visit the underlying metric.