public class ReadAheadRequest extends Object
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 |
---|---|
String |
getBucketName()
Obtain the bucket name.
|
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 |
setBucketName(String bucketName)
Set the bucket name.
|
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.
|
public 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 getBucketName()
public void setBucketName(String bucketName)
bucketName
- Bucket namepublic 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 © 2019. All rights reserved.