Class ShardRequestCache

org.elasticsearch.index.cache.request.ShardRequestCache

public final class ShardRequestCache extends
Tracks the portion of the request cache in use for a particular shard.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onCached​(org.apache.lucene.util.Accountable key, BytesReference value)
     
    void
     
    void
     
    void
    onRemoval​(org.apache.lucene.util.Accountable key, BytesReference value, boolean evicted)
     
     

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Constructor Details

    • ShardRequestCache

      public ShardRequestCache()
  • Method Details

    • stats

      public RequestCacheStats stats()
    • onHit

      public void onHit()
    • onMiss

      public void onMiss()
    • onCached

      public void onCached(org.apache.lucene.util.Accountable key, BytesReference value)
    • onRemoval

      public void onRemoval(org.apache.lucene.util.Accountable key, BytesReference value, boolean evicted)