public class UploadStagingCache extends Object implements Closeable
The appropriate backend for this cache are wrapped in StagingUploader
implementations.
| Modifier and Type | Method and Description |
|---|---|
static UploadStagingCache |
build(File dir,
File home,
int uploadThreads,
long size,
org.apache.jackrabbit.oak.plugins.blob.StagingUploader uploader,
FileCache cache,
StatisticsProvider statisticsProvider,
ListeningExecutorService executor,
ScheduledExecutorService scheduledExecutor,
int purgeInterval,
int retryInterval) |
void |
close() |
File |
getIfPresent(String key)
Returns the File if present or null otherwise.
|
DataStoreCacheStatsMBean |
getStats()
Cache related stats
|
<any> |
put(String id,
File input)
Puts the file into the staging cache if possible.
|
public static UploadStagingCache build(File dir, File home, int uploadThreads, long size, org.apache.jackrabbit.oak.plugins.blob.StagingUploader uploader, FileCache cache, StatisticsProvider statisticsProvider, ListeningExecutorService executor, ScheduledExecutorService scheduledExecutor, int purgeInterval, int retryInterval)
public <any> put(String id, File input)
id - the id of the file to be stagedinput - the file to be stagedpublic File getIfPresent(String key)
key - of the file to checkpublic DataStoreCacheStatsMBean getStats()
DataStoreCacheStatsMBean.public void close()
close in interface Closeableclose in interface AutoCloseable"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"