public class WeakRefFilesCache extends SoftRefFilesCache
WeakReference
Constructor and Description |
---|
WeakRefFilesCache()
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected Reference<FileObject> |
createReference(FileObject file,
ReferenceQueue<FileObject> refqueue)
Constructs a new Reference.
|
clear, close, getFile, getOrCreateFilesystemCache, putFile, putFileIfAbsent, removeFile, toString
touchFile
getContext, getLogger, init, setContext, setLogger
protected Reference<FileObject> createReference(FileObject file, ReferenceQueue<FileObject> refqueue)
SoftRefFilesCache
createReference
in class SoftRefFilesCache
file
- a file object.refqueue
- a ReferenceQueue.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.