public interface FileCacheable
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the FileCacheable, release all resources.
|
long |
getLastModified()
Returns the time that the underlying file(s) were last modified.
|
java.lang.String |
getLocation()
The location of the FileCacheable.
|
void |
reacquire()
Reacquire any resources like file handles
Used when reactivating in cache.
|
void |
release()
Release any system resources like file handles.
|
void |
setFileCache(FileCacheIF fileCache)
If the FileCache is not null, FileCacheable.close() must call FileCache.release()
|
java.lang.String getLocation()
void close() throws java.io.IOException
java.io.IOException
- on io errorlong getLastModified()
FileFactory
.long
value representing the time the file(s) were last modified or 0L
if the
last-modified time couldn't be determined for any reason.void setFileCache(FileCacheIF fileCache)
public synchronized void close() throws java.io.IOException { if (cache != null) { if (cache.release(this)) return; } reallyClose(); }
fileCache
- must store this, use it on close as above.void release() throws java.io.IOException
java.io.IOException
void reacquire() throws java.io.IOException
java.io.IOException