public class CompositeDataStoreCache
extends com.google.common.cache.AbstractCache<java.lang.String,java.io.File>
implements java.io.Closeable
Constructor and Description |
---|
CompositeDataStoreCache(java.lang.String path,
java.io.File home,
long size,
int uploadSplitPercentage,
int uploadThreads,
com.google.common.cache.CacheLoader<java.lang.String,java.io.InputStream> loader,
org.apache.jackrabbit.oak.plugins.blob.StagingUploader uploader,
StatisticsProvider statsProvider,
com.google.common.util.concurrent.ListeningExecutorService listeningExecutor,
java.util.concurrent.ScheduledExecutorService scheduledExecutor,
java.util.concurrent.ExecutorService executor,
int purgeInterval,
int stagingRetryInterval) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.io.File |
get(java.lang.String key) |
DataStoreCacheStatsMBean |
getCacheStats() |
@Nullable java.io.File |
getIfPresent(java.lang.Object key) |
@Nullable java.io.File |
getIfPresent(java.lang.String key) |
DataStoreCacheStatsMBean |
getStagingCacheStats() |
void |
invalidate(java.lang.Object key) |
boolean |
stage(java.lang.String key,
java.io.File file) |
public CompositeDataStoreCache(java.lang.String path, java.io.File home, long size, int uploadSplitPercentage, int uploadThreads, com.google.common.cache.CacheLoader<java.lang.String,java.io.InputStream> loader, org.apache.jackrabbit.oak.plugins.blob.StagingUploader uploader, StatisticsProvider statsProvider, com.google.common.util.concurrent.ListeningExecutorService listeningExecutor, java.util.concurrent.ScheduledExecutorService scheduledExecutor, java.util.concurrent.ExecutorService executor, int purgeInterval, int stagingRetryInterval)
@Nullable public @Nullable java.io.File getIfPresent(java.lang.String key)
@Nullable public @Nullable java.io.File getIfPresent(java.lang.Object key)
getIfPresent
in interface com.google.common.cache.Cache<java.lang.String,java.io.File>
public java.io.File get(java.lang.String key) throws java.io.IOException
java.io.IOException
public void invalidate(java.lang.Object key)
invalidate
in interface com.google.common.cache.Cache<java.lang.String,java.io.File>
invalidate
in class com.google.common.cache.AbstractCache<java.lang.String,java.io.File>
public boolean stage(java.lang.String key, java.io.File file)
public DataStoreCacheStatsMBean getStagingCacheStats()
public DataStoreCacheStatsMBean getCacheStats()
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
Copyright © 2010 - 2020 Adobe. All Rights Reserved