public class ReadAheadRequest extends GenericRequest
bucketName, cancelHandler, httpMethod, userHeaders| 构造器 | 说明 |
|---|---|
ReadAheadRequest(String bucketName,
String prefix) |
Constructor
|
ReadAheadRequest(String bucketName,
String prefix,
CacheOptionEnum cacheOption,
long ttl) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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, getCancelHandler, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setCancelHandler, 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 © 2025. All rights reserved.