public static class DefaultLocalMediaFileCacheService.MediaCacheUnit
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MIN_UNIT_WEIGHT_IN_KB |
| Constructor and Description |
|---|
MediaCacheUnit(java.io.File cachedFile) |
| Modifier and Type | Method and Description |
|---|---|
static int |
convertNumBytesToCacheUnitWeight(long numBytes) |
java.io.File |
getFile()
This method returns direct cached File instance.
|
java.io.InputStream |
getStream() |
int |
getWeight() |
boolean |
isCachedFileExists() |
void |
markResourceAsEvicted() |
protected void |
releaseUsageAndRemoveIfMarked() |
protected void |
removeResource()
Removes resource without any checks.
|
java.lang.String |
toString() |
void |
tryRemoveResourceOrWriteEvictedMarker() |
public static final int MIN_UNIT_WEIGHT_IN_KB
public boolean isCachedFileExists()
public java.io.File getFile()
public java.io.InputStream getStream()
public void markResourceAsEvicted()
protected void releaseUsageAndRemoveIfMarked()
public void tryRemoveResourceOrWriteEvictedMarker()
protected void removeResource()
public int getWeight()
public static int convertNumBytesToCacheUnitWeight(long numBytes)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 SAP SE. All Rights Reserved.