public interface Cache extends EventDispatcher<CacheEvent>
Modifier and Type | Method and Description |
---|---|
CachingTask |
createTask(SourceDescription source,
CachingParameters parameters)
Creates a caching task which controls the caching of the media.
|
CacheStatus |
getStatus()
The current status of the cache.
|
CachingTaskList |
getTasks()
List of caching tasks which control the caching of media.
|
addEventListener, removeEventListener
CacheStatus getStatus()
- For possible values, see CacheStatus
.
CacheStatus.UNINITIALISED
CachingTaskList getTasks()
- To remove a task from the list, invoke CachingTask.remove()
.
CachingTask createTask(SourceDescription source, CachingParameters parameters)
source
- Describes the media source to be cached. (NonNull)parameters
- Contains caching task related options. (Nullable)