public class NoOpConsistencyPolicy extends Object implements ConsistencyPolicy
Constructor and Description |
---|
NoOpConsistencyPolicy() |
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.
|
public CachingObjectStorage.GetObjectRequestCacheKey constructKey(com.oracle.bmc.objectstorage.requests.GetObjectRequest request)
ConsistencyPolicy
GetObjectRequest
. Set everything that should be ignored when
it comes to the keys to null.constructKey
in interface ConsistencyPolicy
request
- requestpublic 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)
ConsistencyPolicy
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 upinitiateRequest
in interface ConsistencyPolicy
client
- 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.