Class CacheFileProps
java.lang.Object
org.alfresco.repo.content.caching.CacheFileProps
Manage a cache file's associated properties.
- Author:
- Matt Ward
-
Constructor Summary
ConstructorsConstructorDescriptionCacheFileProps(File cacheFile) Construct a CacheFileProps specifying which cache file the properties belong to. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete the cache file's associated properties file.booleanexists()Does a properties file exist for the cache file?longfileSize()Size of the properties file or 0 if it does not exist.Get the value of the contentUrl property.Get the value of the deleteWatchCount property.voidload()Load properties from the cache file's associated properties file.voidsetContentUrl(String url) Set the value of the contentUrl property.voidsetDeleteWatchCount(Integer watchCount) Set the value of the deleteWatchCount property.voidstore()Save properties to the cache file's associated properties file.
-
Constructor Details
-
CacheFileProps
Construct a CacheFileProps specifying which cache file the properties belong to.- Parameters:
cacheFile- - cache file
-
-
Method Details
-
load
public void load()Load properties from the cache file's associated properties file. -
store
public void store()Save properties to the cache file's associated properties file. -
delete
public void delete()Delete the cache file's associated properties file. -
exists
public boolean exists()Does a properties file exist for the cache file?- Returns:
- true if the file exists
-
fileSize
public long fileSize()Size of the properties file or 0 if it does not exist.- Returns:
- file size in bytes.
-
setContentUrl
Set the value of the contentUrl property.- Parameters:
url- String
-
getContentUrl
Get the value of the contentUrl property.- Returns:
- contentUrl
-
setDeleteWatchCount
Set the value of the deleteWatchCount property.- Parameters:
watchCount- Integer
-
getDeleteWatchCount
Get the value of the deleteWatchCount property.- Returns:
- deleteWatchCount
-