| |
|
| java.lang.Object org.directwebremoting.impl.PurgingDownloadManager
All known Subclasses: org.directwebremoting.impl.FileStoreDownloadManager, org.directwebremoting.impl.InMemoryDownloadManager,
PurgingDownloadManager | abstract public class PurgingDownloadManager implements DownloadManager(Code) | | A
DownloadManager that simply stores downloads in memory until they
are requested and then removes them.
author: Joe Walker [joe at getahead dot ltd dot uk] |
Inner Class :public class DownloadPurge implements Runnable | |
downloadHandlerUrl | protected String downloadHandlerUrl(Code) | | The URL part which we attach to the downloads.
|
downloadPurge | protected DownloadPurge downloadPurge(Code) | | Check that the cache of files does not contain out-of-date items
|
idGenerator | protected IdGenerator idGenerator(Code) | | Unique id so we can retrieve downloads when asked
|
log | final protected static Log log(Code) | | The log stream
|
purgeDownloadsAfter | protected long purgeDownloadsAfter(Code) | | After some time we will give up waiting for a file to be downloaded.
By default this is 2 minutes. After this time we expect that the user
is no longer waiting and has gone away.
|
queueSleepTime | protected int queueSleepTime(Code) | | How often do we run purges on the data?
|
PurgingDownloadManager | public PurgingDownloadManager()(Code) | | Schedule cache purges
|
getFileGenerator | abstract protected FileGenerator getFileGenerator(String id)(Code) | | Retrieve a FileGenerator given the id that it was stored under
Parameters: id - The id to lookup The matching FileGenerator or null if no match was found |
purge | abstract protected void purge()(Code) | | Remove all the stale entries from the cache
|
putFileGenerator | abstract protected void putFileGenerator(String id, FileGenerator generator)(Code) | | Store a
FileGenerator against a given id for
later retrieval.
Parameters: id - The id of the given FileGenerator Parameters: generator - The FileGenerator to store against the id |
setDownloadHandlerUrl | public void setDownloadHandlerUrl(String downloadHandlerUrl)(Code) | | The URL part which we attach to the downloads.
Parameters: downloadHandlerUrl - The URL for this Handler. |
setPurgeDownloadsAfter | public void setPurgeDownloadsAfter(long purgeDownloadsAfter)(Code) | | Parameters: purgeDownloadsAfter - the purgeDownloadsAfter to set |
|
|
|