public final class EvictionDispatcher extends Object implements EvictionListener
Constructor and Description |
---|
EvictionDispatcher(LowLevelCache dataCache,
SerDeLowLevelCacheImpl serdeCache,
MetadataCache metadataCache,
EvictionAwareAllocator allocator) |
Modifier and Type | Method and Description |
---|---|
void |
notifyEvicted(LlapCacheableBuffer buffer)
To be used for normal (reactive) eviction path where we don't expect MM to release memory right after this call
|
void |
notifyEvicted(LlapDataBuffer buffer,
boolean isProactiveEviction) |
void |
notifyEvicted(MetadataCache.LlapMetadataBuffer<?> buffer,
boolean isProactiveEviction) |
void |
notifyEvicted(OrcFileEstimateErrors buffer) |
void |
notifyEvicted(SerDeLowLevelCacheImpl.LlapSerDeDataBuffer buffer,
boolean isProactiveEviction) |
void |
notifyProactivelyEvicted(LlapCacheableBuffer buffer)
To be used for proactive eviction only where we want to let MM release memory previously occupied by this buffer
|
public EvictionDispatcher(LowLevelCache dataCache, SerDeLowLevelCacheImpl serdeCache, MetadataCache metadataCache, EvictionAwareAllocator allocator)
public void notifyEvicted(LlapCacheableBuffer buffer)
EvictionListener
notifyEvicted
in interface EvictionListener
public void notifyProactivelyEvicted(LlapCacheableBuffer buffer)
EvictionListener
notifyProactivelyEvicted
in interface EvictionListener
public void notifyEvicted(SerDeLowLevelCacheImpl.LlapSerDeDataBuffer buffer, boolean isProactiveEviction)
public void notifyEvicted(LlapDataBuffer buffer, boolean isProactiveEviction)
public void notifyEvicted(MetadataCache.LlapMetadataBuffer<?> buffer, boolean isProactiveEviction)
public void notifyEvicted(OrcFileEstimateErrors buffer)
Copyright © 2022 The Apache Software Foundation. All rights reserved.