public class CachePurge extends Object implements LookupCachePurge
LookupDataAdapter.refresh(LookupCachePurge)
to allow data adapters to purge
the cache after updating their state/data. It takes care of using the correct LookupCacheKey
prefix
to delete only those cache keys which belong to the data adapter.Constructor and Description |
---|
CachePurge(ConcurrentMap<String,LookupTable> tables,
LookupDataAdapter adapter) |
Modifier and Type | Method and Description |
---|---|
void |
purgeAll()
Purges all entries from the cache.
|
void |
purgeKey(Object key)
Purges only the cache entry for the given key.
|
public CachePurge(ConcurrentMap<String,LookupTable> tables, LookupDataAdapter adapter)
public void purgeAll()
LookupCachePurge
purgeAll
in interface LookupCachePurge
public void purgeKey(Object key)
LookupCachePurge
purgeKey
in interface LookupCachePurge
key
- cache key to purgeCopyright © 2012–2018 Graylog, Inc.. All rights reserved.