-
public abstract class DiskCacheStrategySet of available caching strategies for media.
-
-
Field Summary
Fields Modifier and Type Field Description public final static DiskCacheStrategyALLpublic final static DiskCacheStrategyNONEpublic final static DiskCacheStrategyDATApublic final static DiskCacheStrategyRESOURCEpublic final static DiskCacheStrategyAUTOMATIC
-
Method Summary
Modifier and Type Method Description abstract booleanisDataCacheable(DataSource dataSource)Returns true if this request should cache the original unmodified data. abstract booleanisResourceCacheable(boolean isFromAlternateCacheKey, DataSource dataSource, EncodeStrategy encodeStrategy)Returns true if this request should cache the final transformed resource. abstract booleandecodeCachedResource()Returns true if this request should attempt to decode cached resource data. abstract booleandecodeCachedData()Returns true if this request should attempt to decode cached source data. -
-
Method Detail
-
isDataCacheable
abstract boolean isDataCacheable(DataSource dataSource)
Returns true if this request should cache the original unmodified data.
- Parameters:
dataSource- Indicates where the data was originally retrieved.
-
isResourceCacheable
abstract boolean isResourceCacheable(boolean isFromAlternateCacheKey, DataSource dataSource, EncodeStrategy encodeStrategy)
Returns true if this request should cache the final transformed resource.
- Parameters:
isFromAlternateCacheKey-{@code true}if the resource we've decoded was loaded using analternative, rather than the primary, cache key.dataSource- Indicates where the data used to decode the resource was originallyretrieved.encodeStrategy- The EncodeStrategy the will use to encode the resource.
-
decodeCachedResource
abstract boolean decodeCachedResource()
Returns true if this request should attempt to decode cached resource data.
-
decodeCachedData
abstract boolean decodeCachedData()
Returns true if this request should attempt to decode cached source data.
-
-
-
-