HHH-12495 - Cache statistics (binary compatibility)
This commit is contained in:
parent
e508d6bee8
commit
a63c4fe1d2
|
@ -6,6 +6,10 @@
|
|||
*/
|
||||
package org.hibernate.stat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @deprecated (since 5.3) Use {@link NaturalIdStatistics} - unfortunately the
|
||||
* old statistics contracts exposed these by region name, rather than the name of
|
||||
|
@ -14,7 +18,7 @@ package org.hibernate.stat;
|
|||
* @author Steve Ebersole
|
||||
*/
|
||||
@Deprecated
|
||||
public interface NaturalIdCacheStatistics {
|
||||
public interface NaturalIdCacheStatistics extends Serializable {
|
||||
/**
|
||||
* Number of times (since last Statistics clearing) the "natural id
|
||||
* resolution" query has been executed
|
||||
|
@ -50,4 +54,8 @@ public interface NaturalIdCacheStatistics {
|
|||
long getElementCountOnDisk();
|
||||
|
||||
long getSizeInMemory();
|
||||
|
||||
default Map getEntries() {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
*/
|
||||
package org.hibernate.stat;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Cache statistics pertaining to a specific data region
|
||||
*
|
||||
|
@ -16,4 +19,7 @@ package org.hibernate.stat;
|
|||
*/
|
||||
@Deprecated
|
||||
public interface SecondLevelCacheStatistics extends CacheRegionStatistics {
|
||||
default Map getEntries() {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue