|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FilesCache
The fileCache interface. Implementations of this interface are expected to be thread safe.
| Method Summary | |
|---|---|
void |
clear(FileSystem filesystem)
purge the entries corresponding to the filesystem. |
void |
close()
purge the whole cache. |
FileObject |
getFile(FileSystem filesystem,
FileName name)
retrieve a file from the cache by its name. |
void |
putFile(FileObject file)
add a fileobject to the cache. |
boolean |
putFileIfAbsent(FileObject file)
add a fileobject to the cache if it isn't already present. |
void |
removeFile(FileSystem filesystem,
FileName name)
removes a file from cache. |
| Method Detail |
|---|
void putFile(FileObject file)
file - the fileboolean putFileIfAbsent(FileObject file)
file - the file
FileObject getFile(FileSystem filesystem,
FileName name)
filesystem - The FileSystem.name - the name
void clear(FileSystem filesystem)
filesystem - The FileSystem.void close()
void removeFile(FileSystem filesystem,
FileName name)
filesystem - filesystemname - filename
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||