public class BoxCacheFutureTask<T extends BoxObject,R extends BoxRequest & BoxCacheableRequest> extends BoxFutureTask<T>
BoxFutureTask that indicates the results will be fetched from the cache instead of the
serverBoxFutureTask.OnCompletedListener<E extends BoxObject>mCompletedListeners, mRequest| Constructor and Description |
|---|
BoxCacheFutureTask(java.lang.Class<T> clazz,
R request,
BoxCache cache)
Creates a new instance of a task that will fetch results from the cache
|
addOnCompletedListener, donepublic BoxCacheFutureTask(java.lang.Class<T> clazz, R request, BoxCache cache)
clazz - the class of the return typerequest - the request to execute against the cachecache - The implementation of BoxCache to be used to store results of this task.