Code example for CacheStats

Methods: evictionCounthitCountloadExceptionCountloadSuccessCountmissCounttotalLoadTime

0
 
        stats = crr.getUserStats();
        sb.append("UserStats[")
                .append(" size:").append(crr.getUserCacheSize())
                .append("/").append(crr.getCacheInitParams().getSize())
                .append(" hitCount:").append(stats.hitCount())
                .append(" missCount:").append(stats.missCount())
                .append(" loadSuccessCount:").append(stats.loadSuccessCount())
                .append(" loadExceptionCount:").append(stats.loadExceptionCount())
                .append(" totalLoadTime:").append(stats.totalLoadTime())
                .append(" evictionCount:").append(stats.evictionCount())
                .append("] \n"); 
 
       getResponse().setEntity(new StringRepresentation(sb));
    } 
}