Package ucar.nc2.util.cache
Class FileCacheNOP
- java.lang.Object
-
- ucar.nc2.util.cache.FileCache
-
- ucar.nc2.util.cache.FileCacheNOP
-
- All Implemented Interfaces:
FileCacheIF
public class FileCacheNOP extends FileCache
A FileCache that does nothing when release() is called.- Since:
- Mar 3, 2009
-
-
Constructor Summary
Constructors Constructor Description FileCacheNOP()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
release(FileCacheable ncfile)
Release the file.-
Methods inherited from class ucar.nc2.util.cache.FileCache
acquire, acquire, acquire, clearCache, disable, eject, enable, getInfo, resetTracking, showCache, showCache, showStats, showTracking, shutdown
-
-
-
-
Method Detail
-
release
public boolean release(FileCacheable ncfile)
Description copied from class:FileCache
Release the file. This unlocks it, updates its lastAccessed date. Normally applications need not call this, just close the file as usual. The FileCacheable has to do tricky stuff.- Specified by:
release
in interfaceFileCacheIF
- Overrides:
release
in classFileCache
- Parameters:
ncfile
- release this file.- Returns:
- true if file was in cache, false if it was not
-
-