Package com.googlecode.objectify.impl
Class EntityMemcacheStats
java.lang.Object
com.googlecode.objectify.impl.EntityMemcacheStats
- All Implemented Interfaces:
MemcacheStats
public class EntityMemcacheStats extends Object implements MemcacheStats
Tracks hit/miss statistics for the memcache.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetStats()
Get the live statistics.void
recordHit(com.google.appengine.api.datastore.Key key)
void
recordMiss(com.google.appengine.api.datastore.Key key)
-
Constructor Details
-
EntityMemcacheStats
public EntityMemcacheStats()
-
-
Method Details
-
getStats
Get the live statistics. You can clear it if you want.- Returns:
- the live map, but you can iterate through it just fine
-
recordHit
public void recordHit(com.google.appengine.api.datastore.Key key)- Specified by:
recordHit
in interfaceMemcacheStats
-
recordMiss
public void recordMiss(com.google.appengine.api.datastore.Key key)- Specified by:
recordMiss
in interfaceMemcacheStats
-