public class EHResourceDataCache extends java.lang.Object implements ResourceDataCache
Constructor and Description |
---|
EHResourceDataCache(Cache dataCache) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove all cached entries.
|
ResourceDataCacheEntry |
get(ResourceKey key)
Retrieves the given data from the cache.
|
ResourceData |
put(ResourceManager caller,
ResourceData data)
Stores the given data on the cache.
|
void |
remove(ResourceData data) |
void |
shutdown() |
public ResourceDataCacheEntry get(ResourceKey key)
get
in interface ResourceDataCache
key
- the resource key for the data.public ResourceData put(ResourceManager caller, ResourceData data) throws ResourceLoadingException
put
in interface ResourceDataCache
data
- the data to be stored in the cacheResourceLoadingException
public void remove(ResourceData data)
remove
in interface ResourceDataCache
public void clear()
clear
in interface ResourceDataCache
public void shutdown()
shutdown
in interface ResourceDataCache