-
- All Implemented Interfaces:
-
io.appmetrica.analytics.coreapi.internal.cache.UpdateConditionsChecker
public abstract class DataCache<T> implements UpdateConditionsChecker
-
-
Method Summary
Modifier and Type Method Description voidupdateData(@NonNull() T newData)TgetData()voidsetUpdateScheduler(@NonNull() CacheUpdateScheduler cacheUpdateScheduler)voidupdateCacheControl(long refreshTime, long expiryTime)booleanshouldUpdate()CachedDataProvider.CachedData<T>getCachedData()-
-
Constructor Detail
-
DataCache
DataCache(long refreshTime, long expiryTime, String description)
-
-
Method Detail
-
updateData
void updateData(@NonNull() T newData)
-
setUpdateScheduler
void setUpdateScheduler(@NonNull() CacheUpdateScheduler cacheUpdateScheduler)
-
updateCacheControl
void updateCacheControl(long refreshTime, long expiryTime)
-
shouldUpdate
boolean shouldUpdate()
-
getCachedData
@NonNull() CachedDataProvider.CachedData<T> getCachedData()
-
-
-
-