com.octo.android.robospice.persistence.retrofit
Class RetrofitObjectPersister<T>
java.lang.Object
com.octo.android.robospice.persistence.ObjectPersister<T>
com.octo.android.robospice.persistence.file.InFileObjectPersister<T>
com.octo.android.robospice.persistence.retrofit.RetrofitObjectPersister<T>
- All Implemented Interfaces:
- CacheCleaner, Persister
public class RetrofitObjectPersister<T>
- extends InFileObjectPersister<T>
Methods inherited from class com.octo.android.robospice.persistence.file.InFileObjectPersister |
fromKey, getAllCacheKeys, getCacheFile, getCacheFolder, getCachePrefix, getCreationDateInCache, getKeySanitizer, isCachedAndNotExpired, isCachedAndNotExpired, isDataInCache, isUsingKeySanitizer, loadAllDataFromCache, loadDataFromCache, removeAllDataFromCache, removeDataFromCache, setCacheFolder, setKeySanitizer, toKey |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RetrofitObjectPersister
public RetrofitObjectPersister(android.app.Application application,
retrofit.converter.Converter converter,
Class<T> clazz,
File cacheFolder)
throws CacheCreationException
- Throws:
CacheCreationException
RetrofitObjectPersister
public RetrofitObjectPersister(android.app.Application application,
retrofit.converter.Converter converter,
Class<T> clazz)
throws CacheCreationException
- Throws:
CacheCreationException
saveDataToCacheAndReturnData
public T saveDataToCacheAndReturnData(T data,
Object cacheKey)
throws CacheSavingException
- Specified by:
saveDataToCacheAndReturnData
in class ObjectPersister<T>
- Throws:
CacheSavingException
readCacheDataFromFile
protected T readCacheDataFromFile(File file)
throws CacheLoadingException
- Specified by:
readCacheDataFromFile
in class InFileObjectPersister<T>
- Throws:
CacheLoadingException
Copyright © 2012-2014. All Rights Reserved.