Code example for SecondLevelCacheStatistics

Methods: getEntries

0
        if (stats == null) {
            System.out.println("null");
            return; 
        } 
        System.out.println(stats);
        System.out.println("Cache Keys: " + stats.getEntries().keySet());
        // System.out.println("Cache Values: " + stats.getEntries().values()); 
    } 
 
    private void printStats(SessionStatistics stats) {
        System.out.println("Session Keys: " + stats.getEntityKeys());
    } 
 
}