Remove deprecated methods on ServerCache getHitRatio() -> hitRatio(), getStatistics() -> statistics()

This commit is contained in:
Rob Bygrave committed 2022-04-07 17:03:04 +12:00
1 parent e22e5885e2
commit ff257a272b
6 files changed
+16 -56

No files matched your search

@@ -85,7 +85,7 @@ public class DefaultServerCache implements ServerCache {
}
@Override
public ServerCacheStatistics getStatistics(boolean reset) {
public ServerCacheStatistics statistics(boolean reset) {
ServerCacheStatistics cacheStats = new ServerCacheStatistics();
cacheStats.setCacheName(name);
cacheStats.setMaxSize(maxSize);
@@ -114,7 +114,7 @@ public class DefaultServerCache implements ServerCache {
}
@Override
public int getHitRatio() {
public int hitRatio() {
long mc = missCount.get(false);
long hc = hitCount.get(false);
long totalCount = hc + mc;