Package org.nuxeo.ecm.core.convert.cache
Class ConversionCacheEntry
- java.lang.Object
-
- org.nuxeo.ecm.core.convert.cache.ConversionCacheEntry
-
public class ConversionCacheEntry extends Object
Represents an Entry in theConversionServicecache system.Manages timestamp and persistence.
- Author:
- tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected BlobHolderbhprotected DatelastAccessTimeprotected booleanpersistedprotected StringpersistPathprotected longsizeInKB
-
Constructor Summary
Constructors Constructor Description ConversionCacheEntry(BlobHolder bh)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDiskSpaceUsageInKB()DategetLastAccessedTime()booleanpersist(String basePath)voidremove()BlobHolderrestore()protected voidupdateAccessTime()
-
-
-
Field Detail
-
lastAccessTime
protected Date lastAccessTime
-
bh
protected BlobHolder bh
-
persisted
protected boolean persisted
-
persistPath
protected String persistPath
-
sizeInKB
protected long sizeInKB
-
-
Constructor Detail
-
ConversionCacheEntry
public ConversionCacheEntry(BlobHolder bh)
-
-
Method Detail
-
updateAccessTime
protected void updateAccessTime()
-
persist
public boolean persist(String basePath) throws IOException
- Throws:
IOException
-
remove
public void remove()
-
restore
public BlobHolder restore()
-
getDiskSpaceUsageInKB
public long getDiskSpaceUsageInKB()
-
getLastAccessedTime
public Date getLastAccessedTime()
-
-