Package com.googlecode.objectify.impl
Class EntityMemcacheStats
java.lang.Object
com.googlecode.objectify.impl.EntityMemcacheStats
- All Implemented Interfaces:
MemcacheStats
Tracks hit/miss statistics for the memcache.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetStats()
Get the live statistics.void
recordHit
(com.google.cloud.datastore.Key key) void
recordMiss
(com.google.cloud.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.cloud.datastore.Key key) - Specified by:
recordHit
in interfaceMemcacheStats
-
recordMiss
public void recordMiss(com.google.cloud.datastore.Key key) - Specified by:
recordMiss
in interfaceMemcacheStats
-