|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileCacheable
Interface for files that are cacheable.
| Method Summary | |
|---|---|
void |
close()
Close the FileCacheable, release all resources. |
java.lang.String |
getLocation()
The location of the FileCacheable, used only for debug and log messages. |
void |
setFileCache(FileCache fileCache)
FileCacheable must store the FileCache and call it on close(): |
boolean |
sync()
Sync() is called when the FileCacheable is found in the cache, before returning the object to the application. |
| Method Detail |
|---|
java.lang.String getLocation()
void close()
throws java.io.IOException
java.io.IOException
boolean sync()
throws java.io.IOException
java.io.IOException - on i/o error.void setFileCache(FileCache fileCache)
public synchronized void close() throws java.io.IOException {
if (isClosed) return;
if (cache != null) {
cache.release(this);
} else {
reallyClose();
}
isClosed = true;
fileCache - must store this, use it on close as above.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||