K - The type of the key to the indexpublic interface CachedExternalResourceIndex<K>
| Modifier and Type | Method and Description |
|---|---|
void |
clear(K key)
Remove the entry for the given key if it exists.
|
CachedExternalResource |
lookup(K key)
Lookup a cached resolution.
|
void |
store(K key,
File artifactFile,
ExternalResourceMetaData metaData)
Adds a resolution to the index.
|
void |
storeMissing(K key)
Record that the artifact with the given key was missing.
|
void store(K key, File artifactFile, @Nullable ExternalResourceMetaData metaData)
key - The key to cache this resolution under in the index. Cannot be null.artifactFile - The artifact file in the persistent file store. Cannot be nullmetaData - Information about this resource at its sourcestoreMissing(Object)void storeMissing(K key)
key - The key to cache this resolution under in the index.@Nullable CachedExternalResource lookup(K key)
CachedExternalResource.getCachedFile() is guaranteed
to exist at the time that the entry is returned from this method.key - The key to search the index forvoid clear(K key)
key - The key of the item to remove.Copyright © 2013. All rights reserved