类 ReadAheadRequest

java.lang.Object
com.obs.services.model.GenericRequest
com.obs.services.model.ReadAheadRequest

public class ReadAheadRequest extends GenericRequest
Request parameters for reading ahead objects
  • 构造器详细资料

    • ReadAheadRequest

      public ReadAheadRequest(String bucketName, String prefix)
      Constructor
      参数:
      bucketName - Bucket name
      prefix - Name prefix of objects to be read ahead
    • ReadAheadRequest

      public ReadAheadRequest(String bucketName, String prefix, CacheOptionEnum cacheOption, long ttl)
      Constructor
      参数:
      bucketName - Bucket name
      prefix - Name prefix of objects to be read ahead
      cacheOption - Control option of the read-ahead cache
      ttl - Expiration time of cached data, in seconds. The value ranges from 0 to 259200 (3 days)
  • 方法详细资料

    • getPrefix

      public String getPrefix()
      Obtain the name prefix of objects to be read ahead.
      返回:
      Name prefix of objects to be read ahead
    • setPrefix

      public void setPrefix(String prefix)
      Set the name prefix of objects to be read ahead.
      参数:
      prefix - Name prefix of objects to be read ahead
    • getCacheOption

      public CacheOptionEnum getCacheOption()
      Obtain the control option of the read-ahead cache.
      返回:
      Control option of the read-ahead cache
    • setCacheOption

      public void setCacheOption(CacheOptionEnum cacheOption)
      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.