public class ReadAheadRequest extends GenericRequest
bucketName, httpMethod, userHeaders| Constructor and Description |
|---|
ReadAheadRequest(String bucketName,
String prefix)
Constructor
|
ReadAheadRequest(String bucketName,
String prefix,
CacheOptionEnum cacheOption,
long ttl)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
CacheOptionEnum |
getCacheOption()
Obtain the control option of the read-ahead cache.
|
String |
getPrefix()
Obtain the name prefix of objects to be read ahead.
|
long |
getTtl()
Obtain the cache data expiration time.
|
void |
setCacheOption(CacheOptionEnum cacheOption)
Set the control option of the read-ahead cache.
|
void |
setPrefix(String prefix)
Set the name prefix of objects to be read ahead.
|
void |
setTtl(long ttl)
Set the cache data expiration time.
|
addUserHeaders, getBucketName, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setRequesterPays, setUserHeaders, toStringpublic ReadAheadRequest(String bucketName, String prefix)
bucketName - Bucket nameprefix - Name prefix of objects to be read aheadpublic ReadAheadRequest(String bucketName, String prefix, CacheOptionEnum cacheOption, long ttl)
bucketName - Bucket nameprefix - Name prefix of objects to be read aheadcacheOption - Control option of the read-ahead cachettl - Expiration time of cached data, in seconds. The value ranges
from 0 to 259200 (3 days)public String getPrefix()
public void setPrefix(String prefix)
prefix - Name prefix of objects to be read aheadpublic CacheOptionEnum getCacheOption()
public void setCacheOption(CacheOptionEnum cacheOption)
cacheOption - Control option of the read-ahead cachepublic long getTtl()
public void setTtl(long ttl)
ttl - Expiration time of cached data, in seconds. The value ranges
from 0 to 259200 (72 hours). The default value is 24 hours.Copyright © 2021. All rights reserved.