public class NoAsyncCache extends AsyncCache
WARNING: This API is experimental and subject to breaking changes. Please see https://github.com/google/volley/wiki/Asynchronous-Volley for more details.
AsyncCache.OnGetCompleteCallback, AsyncCache.OnWriteCompleteCallback| Constructor and Description |
|---|
NoAsyncCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(AsyncCache.OnWriteCompleteCallback callback)
Clears the cache.
|
void |
get(java.lang.String key,
AsyncCache.OnGetCompleteCallback callback)
Retrieves an entry from the cache and sends it back through the
AsyncCache.OnGetCompleteCallback.onGetComplete(com.android.volley.Cache.Entry) function |
void |
initialize(AsyncCache.OnWriteCompleteCallback callback)
Initializes the cache and calls
AsyncCache.OnWriteCompleteCallback.onWriteComplete() after the
operation is finished. |
void |
invalidate(java.lang.String key,
boolean fullExpire,
AsyncCache.OnWriteCompleteCallback callback)
Invalidates an entry in the cache and calls
AsyncCache.OnWriteCompleteCallback.onWriteComplete()
after the operation is finished. |
void |
put(java.lang.String key,
Cache.Entry entry,
AsyncCache.OnWriteCompleteCallback callback)
Writes a
Cache.Entry to the cache, and calls AsyncCache.OnWriteCompleteCallback.onWriteComplete() after the operation is finished. |
void |
remove(java.lang.String key,
AsyncCache.OnWriteCompleteCallback callback)
Removes a
Cache.Entry from the cache, and calls AsyncCache.OnWriteCompleteCallback.onWriteComplete() after the operation is finished. |
public void get(java.lang.String key,
AsyncCache.OnGetCompleteCallback callback)
AsyncCacheAsyncCache.OnGetCompleteCallback.onGetComplete(com.android.volley.Cache.Entry) functionget in class AsyncCachekey - Cache keycallback - Callback that will be notified when the information has been retrievedpublic void put(java.lang.String key,
Cache.Entry entry,
AsyncCache.OnWriteCompleteCallback callback)
AsyncCacheCache.Entry to the cache, and calls AsyncCache.OnWriteCompleteCallback.onWriteComplete() after the operation is finished.put in class AsyncCachekey - Cache keyentry - The entry to be written to the cachecallback - Callback that will be notified when the information has been writtenpublic void clear(AsyncCache.OnWriteCompleteCallback callback)
AsyncCacheAsyncCache.OnWriteCompleteCallback.onWriteComplete() after the operation is finished.clear in class AsyncCachepublic void initialize(AsyncCache.OnWriteCompleteCallback callback)
AsyncCacheAsyncCache.OnWriteCompleteCallback.onWriteComplete() after the
operation is finished.initialize in class AsyncCachepublic void invalidate(java.lang.String key,
boolean fullExpire,
AsyncCache.OnWriteCompleteCallback callback)
AsyncCacheAsyncCache.OnWriteCompleteCallback.onWriteComplete()
after the operation is finished.invalidate in class AsyncCachekey - Cache keyfullExpire - True to fully expire the entry, false to soft expirecallback - Callback that's invoked once the entry has been invalidatedpublic void remove(java.lang.String key,
AsyncCache.OnWriteCompleteCallback callback)
AsyncCacheCache.Entry from the cache, and calls AsyncCache.OnWriteCompleteCallback.onWriteComplete() after the operation is finished.remove in class AsyncCachekey - Cache keycallback - Callback that's invoked once the entry has been removed