Package org.apache.hadoop.hbase.io.hfile
Class TinyLfuBlockCache.EvictionListener
java.lang.Object
org.apache.hadoop.hbase.io.hfile.TinyLfuBlockCache.EvictionListener
- All Implemented Interfaces:
com.github.benmanes.caffeine.cache.RemovalListener<BlockCacheKey,
Cacheable>
- Enclosing class:
- TinyLfuBlockCache
private final class TinyLfuBlockCache.EvictionListener
extends Object
implements com.github.benmanes.caffeine.cache.RemovalListener<BlockCacheKey,Cacheable>
A removal listener to asynchronously record evictions and populate the victim cache.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onRemoval
(BlockCacheKey key, Cacheable value, com.github.benmanes.caffeine.cache.RemovalCause cause)
-
Constructor Details
-
EvictionListener
private EvictionListener()
-
-
Method Details
-
onRemoval
public void onRemoval(BlockCacheKey key, Cacheable value, com.github.benmanes.caffeine.cache.RemovalCause cause) - Specified by:
onRemoval
in interfacecom.github.benmanes.caffeine.cache.RemovalListener<BlockCacheKey,
Cacheable>
-