Package org.graylog2.lookup
Class CachePurge
java.lang.Object
org.graylog2.lookup.CachePurge
- All Implemented Interfaces:
LookupCachePurge
This will be passed to
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 Summary
ConstructorDescriptionCachePurge
(ConcurrentMap<String, LookupTable> tables, LookupDataAdapter adapter) -
Method Summary
-
Constructor Details
-
CachePurge
-
-
Method Details
-
purgeAll
public void purgeAll()Description copied from interface:LookupCachePurge
Purges all entries from the cache.- Specified by:
purgeAll
in interfaceLookupCachePurge
-
purgeKey
Description copied from interface:LookupCachePurge
Purges only the cache entry for the given key.- Specified by:
purgeKey
in interfaceLookupCachePurge
- Parameters:
key
- cache key to purge
-