Class FileCachePersist
java.lang.Object
de.businesscode.bcdui.web.cacheControl.FileCachePersist
- All Implemented Interfaces:
IServerCachePersist
This class implements the file system based caching store.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Method clean
remove all cache items from the store depends on prefixvoid
Method dropItem
drop a single item, this method is necessary for clean job in case of occurred exceptiongetInputStream
(String prefix, String key) Method getInputStreamlong
getLastModified
(String prefix, String key) Method getLastModifiedgetOutputStream
(String prefix, String key) Method getOutputStreamboolean
Method isCachedvoid
setAbsoluteFolderPath
(String absoluteFolderPath) Method setAbsoluteFolderPath
-
Constructor Details
-
FileCachePersist
public FileCachePersist()Constructor
-
-
Method Details
-
setAbsoluteFolderPath
Method setAbsoluteFolderPath- Parameters:
absoluteFolderPath
-
-
clean
Description copied from interface:IServerCachePersist
Method clean
remove all cache items from the store depends on prefix- Specified by:
clean
in interfaceIServerCachePersist
- Throws:
Exception
- See Also:
-
getInputStream
Description copied from interface:IServerCachePersist
Method getInputStream- Specified by:
getInputStream
in interfaceIServerCachePersist
- Returns:
- input stream for reading item depends on prefix and key. The InputStream will be closed by caller
- Throws:
Exception
- See Also:
-
getOutputStream
Description copied from interface:IServerCachePersist
Method getOutputStream- Specified by:
getOutputStream
in interfaceIServerCachePersist
- Returns:
- output stream for creating a new item depends on prefix and key. The OutputStream will be closed by caller
- Throws:
Exception
- See Also:
-
dropItem
Description copied from interface:IServerCachePersist
Method dropItem
drop a single item, this method is necessary for clean job in case of occurred exception- Specified by:
dropItem
in interfaceIServerCachePersist
- Throws:
Exception
- See Also:
-
isCached
Description copied from interface:IServerCachePersist
Method isCached- Specified by:
isCached
in interfaceIServerCachePersist
- Returns:
- true if the item depends on prefix and key available in the store
- Throws:
Exception
- See Also:
-
getLastModified
Description copied from interface:IServerCachePersist
Method getLastModified- Specified by:
getLastModified
in interfaceIServerCachePersist
- Returns:
- the long value represents the last modified timestamp in milliseconds
- Throws:
Exception
- See Also:
-