public interface DataCache
Provides caching for Data
over several requests.
The cache doesn't need to provide synchronization; synchronization must be provided from the clients of the cache.
The exact caching algorithm is left to the implementation. Memory consumption should be a considered important, as reports may grow quite large.
Modifier and Type | Method and Description |
---|---|
Data |
get(java.lang.String userId,
java.lang.String path,
java.util.Locale locale,
java.util.Calendar modificationDate)
Gets a report by its path.
|
void |
put(java.lang.String userId,
java.lang.String path,
java.util.Locale locale,
Data data,
java.util.Calendar modificationDate)
Adds the specified report data to the cache.
|
void put(java.lang.String userId, java.lang.String path, java.util.Locale locale, Data data, java.util.Calendar modificationDate)
userId
- The ID of the user to cache the report forpath
- The path of the reportlocale
- The locale the report was created fordata
- The report data to addmodificationDate
- The date of the report's last modificationData get(java.lang.String userId, java.lang.String path, java.util.Locale locale, java.util.Calendar modificationDate)
userId
- The ID of the user to determine the report forpath
- The pathlocale
- The locale the data has to be determined formodificationDate
- The date of the report's last modificationnull
if the report is not cached"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"