public class ReadAheadRequest extends Object
Constructor and Description |
---|
ReadAheadRequest(String bucketName,
String prefix)
构造函数
|
ReadAheadRequest(String bucketName,
String prefix,
CacheOptionEnum cacheOption,
long ttl)
构造函数
|
Modifier and Type | Method and Description |
---|---|
String |
getBucketName()
获取桶名
|
CacheOptionEnum |
getCacheOption()
获取预读缓存的控制选项
|
String |
getPrefix()
获取待预读对象的对象名前缀
|
long |
getTtl()
获取缓存数据过期时间
|
void |
setBucketName(String bucketName)
设置桶名
|
void |
setCacheOption(CacheOptionEnum cacheOption)
设置预读缓存的控制选项
|
void |
setPrefix(String prefix)
设置待预读对象的对象名前缀
|
void |
setTtl(long ttl)
设置缓存数据过期时间
|
public ReadAheadRequest(String bucketName, String prefix)
bucketName
- 桶名prefix
- 待预读对象的对象名前缀public ReadAheadRequest(String bucketName, String prefix, CacheOptionEnum cacheOption, long ttl)
bucketName
- 桶名prefix
- 待预读对象的对象名前缀cacheOption
- 预读缓存的控制选项ttl
- 缓存数据过期时间,单位:秒,取值范围:0~259200(3天)public String getBucketName()
public void setBucketName(String bucketName)
bucketName
- 桶名public String getPrefix()
public void setPrefix(String prefix)
prefix
- 待预读对象的对象名前缀public CacheOptionEnum getCacheOption()
public void setCacheOption(CacheOptionEnum cacheOption)
cacheOption
- 预读缓存的控制选项public long getTtl()
public void setTtl(long ttl)
ttl
- 缓存数据过期时间 单位:秒,取值范围:0~259200(72小时), 默认值:24小时Copyright © 2021. All rights reserved.