01: package javax.cache;
02:
03: /**
04: *
05: */
06: public interface CacheStatistics {
07:
08: // REVIEW adam@bea.com 21-Jun-04 - How does this differ from Cache.size()?
09: // REVIEW brian@quiotix.com - Implementation may well delegate to Cache.size,
10: // but it seemed like it would be a glaring omission to leave objectCount
11: // out of CacheStatistics
12: public long getSize();
13:
14: public long getCacheHits();
15:
16: public long getCacheMisses();
17:
18: // REVIEW BG: This forecloses on the opportunity to make the statistics object an immutable snapshot.
19: // Clearing statistics should be done by the owning object, not the owned one.
20:
21: // public void clear();
22: }
|