AbstractFilesCache
, DefaultFilesCache
, LRUFilesCache
, NullFilesCache
, SoftRefFilesCache
, WeakRefFilesCache
public interface FilesCache
Modifier and Type | Method | Description |
---|---|---|
void |
clear(FileSystem fileSystem) |
Purges the entries corresponding to the FileSystem.
|
void |
close() |
Purges the whole cache.
|
FileObject |
getFile(FileSystem filesystem,
FileName name) |
Retrieves a FileObject from the cache by name.
|
void |
putFile(FileObject file) |
Adds a FileObject to the cache.
|
boolean |
putFileIfAbsent(FileObject file) |
Adds a FileObject to the cache if it isn't already present.
|
void |
removeFile(FileSystem filesystem,
FileName name) |
Removes a file from cache.
|
void putFile(FileObject file)
file
- the fileboolean putFileIfAbsent(FileObject file)
file
- the fileFileObject getFile(FileSystem filesystem, FileName name)
filesystem
- The FileSystem.name
- the namevoid clear(FileSystem fileSystem)
fileSystem
- The FileSystem.void close()
void removeFile(FileSystem filesystem, FileName name)
filesystem
- filesystemname
- filename