-
- All Implemented Interfaces:
-
io.appmetrica.analytics.coreapi.internal.cache.UpdateConditionsChecker
public abstract class SynchronizedDataCache<T> extends DataCache<T>
-
-
Constructor Summary
Constructors Constructor Description SynchronizedDataCache(long refreshTime, long expiryTime, String descriptions)
-
Method Summary
Modifier and Type Method Description synchronized TgetData()synchronized voidupdateData(@NonNull() T newData)synchronized booleanshouldUpdate()-
Methods inherited from class io.appmetrica.analytics.coreutils.internal.cache.DataCache
getCachedData, setUpdateScheduler, updateCacheControl -
Methods inherited from class io.appmetrica.analytics.coreapi.internal.cache.UpdateConditionsChecker
shouldUpdate -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SynchronizedDataCache
SynchronizedDataCache(long refreshTime, long expiryTime, String descriptions)
-
-
Method Detail
-
updateData
synchronized void updateData(@NonNull() T newData)
-
shouldUpdate
@AnyThread() synchronized boolean shouldUpdate()
-
-
-
-