Package io.ebean.meta
Interface MetricVisitor
-
- All Known Implementing Classes:
AbstractMetricVisitor
,BasicMetricVisitor
public interface MetricVisitor
Defines visitor to read and report the transaction and query metrics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isCollectL2Metrics()
Return true if we should visit the L2 cache metrics.boolean
isCollectQueryMetrics()
Return true if we should visit the ORM and SQL query metrics.boolean
isCollectTransactionMetrics()
Return true if we should visit the transaction metrics.boolean
isReset()
Return true if the metrics should be reset.void
visitCount(MetaCountMetric metric)
Visit a Counter metric.void
visitEnd()
Visit has completed.void
visitQuery(MetaQueryMetric metric)
Visit DTO and SQL query metrics.void
visitStart()
Visit has started.void
visitTimed(MetaTimedMetric metric)
Visit transaction metrics (and L2 cache metrics in future).
-
-
-
Method Detail
-
isReset
boolean isReset()
Return true if the metrics should be reset.
-
isCollectTransactionMetrics
boolean isCollectTransactionMetrics()
Return true if we should visit the transaction metrics.
-
isCollectQueryMetrics
boolean isCollectQueryMetrics()
Return true if we should visit the ORM and SQL query metrics.
-
isCollectL2Metrics
boolean isCollectL2Metrics()
Return true if we should visit the L2 cache metrics.
-
visitStart
void visitStart()
Visit has started.
-
visitTimed
void visitTimed(MetaTimedMetric metric)
Visit transaction metrics (and L2 cache metrics in future).
-
visitQuery
void visitQuery(MetaQueryMetric metric)
Visit DTO and SQL query metrics.
-
visitCount
void visitCount(MetaCountMetric metric)
Visit a Counter metric.
-
visitEnd
void visitEnd()
Visit has completed.
-
-