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 theConversionService
cache system.Manages timestamp and persistence.
- Author:
- tiry
-
-
Field Summary
Fields Modifier and Type Field Description protected BlobHolder
bh
protected Date
lastAccessTime
protected boolean
persisted
protected String
persistPath
protected long
sizeInKB
-
Constructor Summary
Constructors Constructor Description ConversionCacheEntry(BlobHolder bh)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDiskSpaceUsageInKB()
Date
getLastAccessedTime()
boolean
persist(String basePath)
void
remove()
BlobHolder
restore()
protected void
updateAccessTime()
-
-
-
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()
-
-