protected <R extends BoxRequest & BoxCacheableRequest> BoxFutureTask<T> handleToTaskForCachedResult() throws BoxException {
        BoxCache cache = BoxConfig.getCache();
        if (cache == null) {
            throw new BoxException.CacheImplementationNotFound();
        }

        return new BoxCacheFutureTask<T, R>(mClazz, (R) getCacheableRequest(), cache);
    }
protected < R extends BoxRequest & BoxCacheableRequest > BoxFutureTask < T > handleToTaskForCachedResult ( ) throws BoxException { BoxCache cache = BoxConfig . getCache ( ) ; if ( cache == null ) { throw new BoxException . CacheImplementationNotFound ( ) ; } return new BoxCacheFutureTask < T , R > ( mClazz , ( R ) getCacheableRequest ( ) , cache ) ; }
Default implementation for getting a task to execute the request.
@param <R> A BoxRequest that implements BoxCaceableRequest
@return The task used to get data from cache implementation.
@throws BoxException thrown if there is no cache implementation set in BoxConfig.