|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.configuration.VFSFileCache
public final class VFSFileCache
a simple in memory cache for VirtualFiles used by
PoorMansCache.
| Constructor Summary | |
|---|---|
protected |
VFSFileCache()
creates a new VFSFileCache. |
| Method Summary | |
|---|---|
protected java.io.InputStream |
cacheFile(VirtualFile f)
caches the given virtual file. |
protected void |
cleanUp(TimeSpan maxInactive)
cleans the cache (is called by PoorMansCache). |
protected java.io.InputStream |
getCached(VirtualFile f)
checks whether the cache contains the given virtual file. |
protected long |
getCacheSize()
returns the size of the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected VFSFileCache()
VFSFileCache.
| Method Detail |
|---|
protected java.io.InputStream getCached(VirtualFile f)
f - the file to check for
null, if the file
is not cached
protected java.io.InputStream cacheFile(VirtualFile f)
throws java.io.IOException
f - the file to be cached
java.io.IOException - on errors creating the entryprotected long getCacheSize()
protected void cleanUp(TimeSpan maxInactive)
PoorMansCache).
maxInactive - the maximum inactivity timespan for cache entries
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||