|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tagtraum.perf.io.FileCache
File cache that uses byte arrays for representing files internally.
Note: This implementation is not synchronized.
Nested Class Summary | |
static interface |
FileCache.Entry
FileCache-Entry. |
Constructor Summary | |
FileCache(Cache cache)
Initializes this FileCache with a given Cache -Object. |
Method Summary | |
FileCache.Entry |
get(java.io.File file)
Gets a FileCache.Entry for a File object. |
long |
getMaxFilesize()
Maximum size of a file to qualify for caching. |
long |
getMinFilesize()
Minimum size of a file to qualify for caching. |
int |
getTimeToLive()
Returns the default length of the validity interval in ms without checking, whether the cached content of an entry is still valid. |
void |
setMaxFilesize(long maxFilesize)
Maximum size of a file to qualify for caching. |
void |
setMinFilesize(long minFilesize)
Minimum size of a file to qualify for caching. |
void |
setTimeToLive(int timeToLive)
Sets the default length of the validity interval in ms without checking, whether the cached content of an entry is still valid. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileCache(Cache cache)
Cache
-Object.
Method Detail |
public FileCache.Entry get(java.io.File file) throws java.io.IOException
FileCache.Entry
for a File
object.
java.io.IOException
public long getMinFilesize()
public void setMinFilesize(long minFilesize)
public long getMaxFilesize()
public void setMaxFilesize(long maxFilesize)
public int getTimeToLive()
public void setTimeToLive(int timeToLive)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |