|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LiveWebCache
Interface to retrieve Resource objects from the live web.
| Method Summary | |
|---|---|
Resource |
getCachedResource(URL url,
long maxCacheMS,
boolean bUseOlder)
Fetch a Resource from the live web, or from a cache of the live web. |
void |
shutdown()
closes all resources |
| Method Detail |
|---|
Resource getCachedResource(URL url,
long maxCacheMS,
boolean bUseOlder)
throws LiveDocumentNotAvailableException,
LiveWebCacheUnavailableException,
IOException
url - to fetch from the live web.maxCacheMS - maximum age of resource to return - optionally honoredbUseOlder - if true, return documents older than maxCacheMS if
a more recent copy is not available.
LiveDocumentNotAvailableException - if the resource cannot be
retrieved from the live web, but all proxying and caching
mechanisms functioned properly
LiveWebCacheUnavailableException - if there was a problem either
accessing the live web, in proxying to the live web, or in
maintaining the cache for the live web
IOException - for the usual reasonsvoid shutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||