public interface CacheEvictor extends Cache.Listener
Cache. Implementations should call Cache.removeSpan(CacheSpan)
to evict cache entries based on their eviction policies.| Modifier and Type | Method and Description |
|---|---|
void |
onCacheInitialized()
Called when cache has been initialized.
|
void |
onStartFile(Cache cache,
java.lang.String key,
long position,
long maxLength)
Called when a writer starts writing to the cache.
|
onSpanAdded, onSpanRemoved, onSpanTouchedvoid onCacheInitialized()
void onStartFile(Cache cache, java.lang.String key, long position, long maxLength)
cache - The source of the event.key - The key being written.position - The starting position of the data being written.maxLength - The maximum length of the data being written.