public class NewDiskCacheManager extends Object
| Constructor and Description |
|---|
NewDiskCacheManager(BimServer bimServer,
Path cacheDir) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
cleanup() |
boolean |
contains(DownloadDescriptor downloadDescriptor) |
void |
doneGenerating(DiskCacheItem diskCacheItem) |
Path |
get(DownloadDescriptor downloadDescriptor) |
boolean |
isEnabled() |
void |
remove(NewDiskCacheOutputStream diskCacheOutputStream) |
NewDiskCacheOutputStream |
startCaching(DownloadDescriptor downloadDescriptor) |
NewDiskCacheWriter |
startCachingWriter(DownloadDescriptor downloadDescriptor,
org.bimserver.plugins.serializers.MessagingStreamingSerializer messagingStreamingSerializer) |
public boolean contains(DownloadDescriptor downloadDescriptor)
public boolean isEnabled()
public Path get(DownloadDescriptor downloadDescriptor)
public NewDiskCacheWriter startCachingWriter(DownloadDescriptor downloadDescriptor, org.bimserver.plugins.serializers.MessagingStreamingSerializer messagingStreamingSerializer)
public NewDiskCacheOutputStream startCaching(DownloadDescriptor downloadDescriptor) throws Exception
Exceptionpublic Integer cleanup()
public void doneGenerating(DiskCacheItem diskCacheItem)
public void remove(NewDiskCacheOutputStream diskCacheOutputStream)
Copyright © 2019 OpenSource BIM. All rights reserved.