ResourceDataCache
public class NullResourceDataCache extends java.lang.Object implements ResourceDataCache
Constructor | Description |
---|---|
NullResourceDataCache() |
Modifier and Type | Method | 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 ResourceData put(ResourceManager caller, ResourceData data) throws ResourceLoadingException
ResourceDataCache
put
in interface ResourceDataCache
data
- the data to be stored in the cacheResourceLoadingException
public ResourceDataCacheEntry get(ResourceKey key)
ResourceDataCache
get
in interface ResourceDataCache
key
- the resource key for the data.public void remove(ResourceData data)
remove
in interface ResourceDataCache
public void clear()
ResourceDataCache
clear
in interface ResourceDataCache
public void shutdown()
shutdown
in interface ResourceDataCache