类 ReadAheadRequest
java.lang.Object
com.obs.services.model.GenericRequest
com.obs.services.model.ReadAheadRequest
-
字段概要
从类继承的字段 com.obs.services.model.GenericRequest
bucketName, cancelHandler, httpMethod, userHeaders -
构造器概要
构造器构造器说明ReadAheadRequest(String bucketName, String prefix) ConstructorReadAheadRequest(String bucketName, String prefix, CacheOptionEnum cacheOption, long ttl) Constructor -
方法概要
修饰符和类型方法说明Obtain the control option of the read-ahead cache.Obtain the name prefix of objects to be read ahead.longgetTtl()Obtain the cache data expiration time.voidsetCacheOption(CacheOptionEnum cacheOption) Set the control option of the read-ahead cache.voidSet the name prefix of objects to be read ahead.voidsetTtl(long ttl) Set the cache data expiration time.从类继承的方法 com.obs.services.model.GenericRequest
addUserHeaders, getBucketName, getCancelHandler, getHttpMethod, getUserHeaders, isRequesterPays, setBucketName, setCancelHandler, setRequesterPays, setUserHeaders, toString
-
构造器详细资料
-
ReadAheadRequest
-
ReadAheadRequest
Constructor- 参数:
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)
-
-
方法详细资料
-
getPrefix
Obtain the name prefix of objects to be read ahead.- 返回:
- Name prefix of objects to be read ahead
-
setPrefix
Set the name prefix of objects to be read ahead.- 参数:
prefix- Name prefix of objects to be read ahead
-
getCacheOption
Obtain the control option of the read-ahead cache.- 返回:
- Control option of the read-ahead cache
-
setCacheOption
Set the control option of the read-ahead cache.- 参数:
cacheOption- Control option of the read-ahead cache
-
getTtl
public long getTtl()Obtain the cache data expiration time.- 返回:
- Expiration time of cached data, in seconds
-
setTtl
public void setTtl(long ttl) Set the cache data expiration time.- 参数:
ttl- Expiration time of cached data, in seconds. The value ranges from 0 to 259200 (72 hours). The default value is 24 hours.
-