|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs.provider.AbstractVfsComponent
org.apache.commons.vfs.cache.AbstractFilesCache
org.apache.commons.vfs.cache.SoftRefFilesCache
org.apache.commons.vfs.cache.WeakRefFilesCache
public class WeakRefFilesCache
This implementation caches every file as long as it is strongly reachable by the java vm. As soon as the object is no longer reachable it will be discarded. In contrast to the SoftRefFilesCache this implementation might free resources faster as it don't wait until a memory limitation.
WeakReference
Constructor Summary | |
---|---|
WeakRefFilesCache()
|
Method Summary | |
---|---|
protected java.lang.ref.Reference |
createReference(FileObject file,
java.lang.ref.ReferenceQueue refqueue)
|
Methods inherited from class org.apache.commons.vfs.cache.SoftRefFilesCache |
---|
clear, close, getFile, getOrCreateFilesystemCache, putFile, removeFile, touchFile |
Methods inherited from class org.apache.commons.vfs.provider.AbstractVfsComponent |
---|
getContext, getLogger, init, setContext, setLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WeakRefFilesCache()
Method Detail |
---|
protected java.lang.ref.Reference createReference(FileObject file, java.lang.ref.ReferenceQueue refqueue)
createReference
in class SoftRefFilesCache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |