public interface FilesCache
Modifier and Type | Method and 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
- filenameCopyright © 2002–2021 The Apache Software Foundation. All rights reserved.