public static interface AbstractPagingRequestFactory.PageCacheRetriever
Modifier and Type | Method and Description |
---|---|
Uri |
getNextPageUrl(String pageKey)
Retrieves the next page for the given key.
|
void |
setNextPage(String pageKey,
Uri page)
Sets the next page.
|
Uri getNextPageUrl(String pageKey)
Retrieves the next page for the given key.
Classes implementing this method must retrieve the URI associated with the provided key. This will not be called from the UI thread.
pageKey
- The key under which the page URI will be stored. This must be unique in
the context of the application and be fully namespaced.null
if none have been
set yet for this key.void setNextPage(String pageKey, Uri page)
Sets the next page. This is the URL returned in the Link header for each page that has been successfully loaded into cache.
Classes implementing this method must persist the provided URI so that it may be retrieved by the given key. This may be called from the UI thread.
pageKey
- The key under which the page URI will be stored. This must be unique in the
context of the application and be fully namespaced.page
- the URL as returned by the Link header of the response or null to clear.