com.obs.services.model

## 类 ReadAheadRequest

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

-     public class ReadAheadRequest
      extends Object

  Request parameters for reading ahead objects

- - ### 构造器概要

    构造器
    构造器和说明
    `ReadAheadRequest(String bucketName, String prefix)` Constructor
    `ReadAheadRequest(String bucketName, String prefix, CacheOptionEnum cacheOption, long ttl)` Constructor

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `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.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### 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)

  - ### 方法详细资料

    - #### getBucketName

          public String getBucketName()

      Obtain the bucket name.
      返回:
        Bucket name

    - #### setBucketName

          public void setBucketName(String bucketName)

      Set the bucket name.
      参数:
        `bucketName` - Bucket name

    - #### 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.

Copyright © 2021. All rights reserved.