#1685 Update ServerCacheFactory to support standard metrics collection

This commit is contained in:
rob bygrave
2019-04-27 22:57:30 +12:00
parent c46ac04c0a
commit 6c88325dad
+9
View File
@@ -1,10 +1,19 @@
package io.ebean.cache;
import io.ebean.meta.MetricVisitor;
/**
* Defines method for constructing caches for beans and queries.
*/
public interface ServerCacheFactory {
/**
* Visit the metrics for the cache.
*/
default void visit(MetricVisitor visitor) {
// do nothing by default
}
/**
* Create the cache for the given type with options.
*/