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.
  • Constructor Details

    • EntityMemcacheStats

      public EntityMemcacheStats()
  • Method Details

    • 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 interface MemcacheStats
    • recordMiss

      public void recordMiss(com.google.cloud.datastore.Key key)
      Specified by:
      recordMiss in interface MemcacheStats