Package | Description |
---|---|
com.oracle.bmc.hdfs.caching |
Modifier and Type | Class and Description |
---|---|
static class |
CachingObjectStorage.DefaultUncacheablePredicate
By default, this implementation does not cache requests with if-none-match set.
|
Modifier and Type | Method and Description |
---|---|
static CachingObjectStorage |
CachingObjectStorage.build(com.oracle.bmc.objectstorage.ObjectStorage client,
com.oracle.bmc.objectstorage.transfer.DownloadConfiguration downloadConfiguration,
Path cacheDirectory,
ExecutorService downloadExecutor,
CachingObjectStorage.UncacheablePredicate uncacheablePredicate,
ConsistencyPolicy consistencyPolicy,
CacheBuilder<CachingObjectStorage.GetObjectRequestCacheKey,CachingObjectStorage.GetObjectResponseCacheValue,?> cacheBuilder,
ExecutorService deletionExecutor,
CachingObjectStorage.RowLockProvider rowLockProvider,
Runnable cacheGarbageCollection)
Returns a new
CachingObjectStorage client. |
CachingObjectStorage.Configuration.ConfigurationBuilder |
CachingObjectStorage.Configuration.ConfigurationBuilder.uncacheablePredicate(CachingObjectStorage.UncacheablePredicate uncacheablePredicate)
Sets the predicate that decides if a request cannot be cached.
|
Constructor and Description |
---|
Handler(com.oracle.bmc.objectstorage.ObjectStorage client,
com.oracle.bmc.objectstorage.transfer.DownloadConfiguration downloadConfiguration,
Path cacheDirectory,
ExecutorService downloadExecutor,
CachingObjectStorage.UncacheablePredicate uncacheablePredicate,
ConsistencyPolicy consistencyPolicy,
CacheBuilder<CachingObjectStorage.GetObjectRequestCacheKey,CachingObjectStorage.GetObjectResponseCacheValue,?> cacheBuilder,
ExecutorService deletionExecutor,
CachingObjectStorage.RowLockProvider rowLockProvider,
Runnable cacheGarbageCollection)
Create an
ObjectStorage client that caches the contents returned by
ObjectStorage.getObject(GetObjectRequest) on disk. |
Copyright © 2016–2023. All rights reserved.