|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--juju.reattore.server.intercept.impl.FileCache
A simple request based cache for ChannelFileSources.
Constructor Summary | |
FileCache()
|
Method Summary | |
ByteSource |
get(java.lang.String req,
java.io.File resolved)
Fetch from the cache or from disk, throwing on failure. |
ByteSource |
tryGet(java.lang.String req)
Attempt to fetch from the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileCache()
Method Detail |
public ByteSource tryGet(java.lang.String req)
req
- The request key to fetch.
public ByteSource get(java.lang.String req, java.io.File resolved) throws java.io.IOException
req
- The request key to fetch.resolved
- The file to fetch from.
java.io.IOException
- from the ChannelFileSource if the file
can't be found.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |