org.apache.commons.vfs2.cache
Class WeakRefFilesCache
java.lang.Object
org.apache.commons.vfs2.provider.AbstractVfsComponent
org.apache.commons.vfs2.cache.AbstractFilesCache
org.apache.commons.vfs2.cache.SoftRefFilesCache
org.apache.commons.vfs2.cache.WeakRefFilesCache
- All Implemented Interfaces:
- FilesCache, VfsComponent
public class WeakRefFilesCache
- extends SoftRefFilesCache
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.
- Version:
- $Revision: 1040766 $ $Date: 2005-09-30 09:02:41 +0200 (Fr, 30 Sep
2005) $
- Author:
- Commons VFS team
- See Also:
WeakReference
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WeakRefFilesCache
public WeakRefFilesCache()
createReference
protected Reference<FileObject> createReference(FileObject file,
ReferenceQueue<FileObject> refqueue)
- Overrides:
createReference in class SoftRefFilesCache
Copyright © 2002–2015 WSO2. All rights reserved.