001package io.ebean.metric; 002 003import io.ebean.meta.MetricVisitor; 004 005/** 006 * Internal Query plan metric holder. 007 */ 008public interface QueryPlanMetric { 009 010 /** 011 * Return the underlying timed metric. 012 */ 013 TimedMetric metric(); 014 015 /** 016 * Deprecated migrate to metric(). 017 */ 018 @Deprecated 019 default TimedMetric getMetric() { 020 return metric(); 021 } 022 023 /** 024 * Visit the underlying metric. 025 */ 026 void visit(MetricVisitor visitor); 027}