public class CacheContentsTracker extends Object implements LowLevelCachePolicy, EvictionListener
Constructor and Description |
---|
CacheContentsTracker(LowLevelCachePolicy realPolicy) |
Modifier and Type | Method and Description |
---|---|
void |
cache(LlapCacheableBuffer buffer,
LowLevelCache.Priority priority) |
String |
debugDumpForOom() |
void |
debugDumpShort(StringBuilder sb) |
long |
evictSomeBlocks(long memoryToReserve) |
void |
notifyEvicted(LlapCacheableBuffer buffer) |
void |
notifyLock(LlapCacheableBuffer buffer) |
void |
notifyUnlock(LlapCacheableBuffer buffer) |
long |
purge() |
void |
setEvictionListener(EvictionListener listener) |
void |
setParentDebugDumper(LlapOomDebugDump dumper) |
public CacheContentsTracker(LowLevelCachePolicy realPolicy)
public void cache(LlapCacheableBuffer buffer, LowLevelCache.Priority priority)
cache
in interface LowLevelCachePolicy
public void notifyLock(LlapCacheableBuffer buffer)
notifyLock
in interface LowLevelCachePolicy
public void notifyUnlock(LlapCacheableBuffer buffer)
notifyUnlock
in interface LowLevelCachePolicy
public void setEvictionListener(EvictionListener listener)
setEvictionListener
in interface LowLevelCachePolicy
public void setParentDebugDumper(LlapOomDebugDump dumper)
setParentDebugDumper
in interface LowLevelCachePolicy
public long purge()
purge
in interface LowLevelCachePolicy
public long evictSomeBlocks(long memoryToReserve)
evictSomeBlocks
in interface LowLevelCachePolicy
public String debugDumpForOom()
debugDumpForOom
in interface LlapOomDebugDump
public void debugDumpShort(StringBuilder sb)
debugDumpShort
in interface LlapOomDebugDump
public void notifyEvicted(LlapCacheableBuffer buffer)
notifyEvicted
in interface EvictionListener
Copyright © 2019 The Apache Software Foundation. All rights reserved.