com.jpattern.service.cache.statistics.CacheStatisticsEntry Maven / Gradle / Ivy
package com.jpattern.service.cache.statistics;
/**
*
* @author Francesco Cina'
*
* 5 May 2011
*/
public class CacheStatisticsEntry implements ICacheStatisticsEntry {
private long hits = 0;
private long missing = 0;
@Override
public long getTotalCall() {
return hits+missing;
}
@Override
public long getHits() {
return hits;
}
@Override
public long getMissing() {
return missing;
}
@Override
public void increaseHits() {
hits++;
}
@Override
public void increaseMissing() {
missing++;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy