public interface ConsistencyPolicy
Modifier and Type | Method and Description |
---|---|
CachingObjectStorage.GetObjectRequestCacheKey |
constructKey(com.oracle.bmc.objectstorage.requests.GetObjectRequest request)
Construct a cache key from the
GetObjectRequest . |
com.oracle.bmc.objectstorage.responses.GetObjectResponse |
initiateRequest(com.oracle.bmc.objectstorage.ObjectStorage client,
com.oracle.bmc.objectstorage.transfer.DownloadManager downloadManager,
com.oracle.bmc.objectstorage.requests.GetObjectRequest request,
CachingObjectStorage.GetObjectRequestCacheKey key,
CachingObjectStorage.GetObjectResponseCacheValue previousValue)
Initiate the request to get the object.
|
CachingObjectStorage.GetObjectRequestCacheKey constructKey(com.oracle.bmc.objectstorage.requests.GetObjectRequest request)
GetObjectRequest
. Set everything that should be ignored when
it comes to the keys to null.request
- requestcom.oracle.bmc.objectstorage.responses.GetObjectResponse initiateRequest(com.oracle.bmc.objectstorage.ObjectStorage client, com.oracle.bmc.objectstorage.transfer.DownloadManager downloadManager, com.oracle.bmc.objectstorage.requests.GetObjectRequest request, CachingObjectStorage.GetObjectRequestCacheKey key, CachingObjectStorage.GetObjectResponseCacheValue previousValue)
GetObjectResponse
for data that should be put in the cache and returned; or
2. null
if the data already in the cache should be used; or
3. An exception, which should be bubbled upclient
- ObjectStorage
client to use (uncached)downloadManager
- DownloadManager
to use for downloading}request
- request to be madekey
- cache keypreviousValue
- previous value or nullCopyright © 2016–2023. All rights reserved.