public class URIExtractionNamespaceCacheFactory extends Object implements ExtractionNamespaceCacheFactory<URIExtractionNamespace>
| Constructor and Description |
|---|
URIExtractionNamespaceCacheFactory(Map<String,SearchableVersionedDataFinder> pullers) |
| Modifier and Type | Method and Description |
|---|---|
Callable<String> |
getCachePopulator(String id,
URIExtractionNamespace extractionNamespace,
String lastVersion,
Map<String,String> cache)
This function is called once if `ExtractionNamespace.getUpdateMs() == 0`, or every update if
`ExtractionNamespace.getUpdateMs() > 0`
For ExtractionNamespace which have the NamespaceExtractionCacheManager handle regular updates, this function
is used to populate the namespace cache each time.
|
@Inject public URIExtractionNamespaceCacheFactory(Map<String,SearchableVersionedDataFinder> pullers)
public Callable<String> getCachePopulator(String id, URIExtractionNamespace extractionNamespace, String lastVersion, Map<String,String> cache)
ExtractionNamespaceCacheFactorygetCachePopulator in interface ExtractionNamespaceCacheFactory<URIExtractionNamespace>id - The ID of ExtractionNamespaceextractionNamespace - The ExtractionNamespace for which to populate data.lastVersion - The version which was last cachedcache - The temporary Map into which data may be placed and will be "swapped" with the proper
namespace Map in NamespaceExtractionCacheManager. Implementations which cannot offer
a swappable cache of the data may ignore this but must make sure `buildFn(...)` returns
a proper Function.Copyright © 2011–2016. All rights reserved.