public class DiskCacheManager extends Object
| Constructor and Description |
|---|
DiskCacheManager(BimServer bimServer,
Path cacheDir) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
cleanup() |
boolean |
contains(DownloadParameters downloadParameters) |
void |
doneGenerating(DiskCacheOutputStream diskCacheOutputStream) |
DataSource |
get(DownloadParameters downloadParameters) |
boolean |
isEnabled() |
void |
remove(DiskCacheOutputStream diskCacheOutputStream) |
DiskCacheOutputStream |
startCaching(DownloadParameters downloadParameters) |
public boolean contains(DownloadParameters downloadParameters)
public boolean isEnabled()
public DataSource get(DownloadParameters downloadParameters)
public DiskCacheOutputStream startCaching(DownloadParameters downloadParameters)
public Integer cleanup()
public void doneGenerating(DiskCacheOutputStream diskCacheOutputStream)
public void remove(DiskCacheOutputStream diskCacheOutputStream)
Copyright © 2019 OpenSource BIM. All rights reserved.