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
Nested Classes Modifier and Type Class Description class
EntityMemcacheStats.Stat
-
Constructor Summary
Constructors Constructor Description EntityMemcacheStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,EntityMemcacheStats.Stat>
getStats()
Get the live statistics.void
recordHit(com.google.cloud.datastore.Key key)
void
recordMiss(com.google.cloud.datastore.Key key)
-
-
-
Method Detail
-
getStats
public Map<String,EntityMemcacheStats.Stat> 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.cloud.datastore.Key key)
- Specified by:
recordHit
in interfaceMemcacheStats
-
recordMiss
public void recordMiss(com.google.cloud.datastore.Key key)
- Specified by:
recordMiss
in interfaceMemcacheStats
-
-