Class DashScopeDocumentCloudReaderConfig

java.lang.Object
com.alibaba.cloud.ai.dashscope.rag.DashScopeDocumentCloudReaderConfig

public class DashScopeDocumentCloudReaderConfig extends Object
DashScope document cloud reader client configuration

Client-side configurations for the document reader, including:

  • Retry strategy (max attempts, intervals, backoff)
  • File size validation (min/max sizes)

These configurations control client behavior and are not sent to the API.

Since:
2025/12/01
Author:
kevin
See Also:
  • Field Details

    • DEFAULT_MAX_FILE_SIZE

      public static final long DEFAULT_MAX_FILE_SIZE
      Default maximum file size: 10MB
      See Also:
    • DEFAULT_MIN_FILE_SIZE

      public static final long DEFAULT_MIN_FILE_SIZE
      Default minimum file size: 1 byte
      See Also:
  • Constructor Details

    • DashScopeDocumentCloudReaderConfig

      public DashScopeDocumentCloudReaderConfig()
      Default constructor
  • Method Details

    • getMaxRetryAttempts

      public int getMaxRetryAttempts()
    • setMaxRetryAttempts

      public void setMaxRetryAttempts(int maxRetryAttempts)
    • getInitialWaitMillis

      public long getInitialWaitMillis()
    • setInitialWaitMillis

      public void setInitialWaitMillis(long initialWaitMillis)
    • getRetryIntervalMillis

      public long getRetryIntervalMillis()
    • setRetryIntervalMillis

      public void setRetryIntervalMillis(long retryIntervalMillis)
    • getMaxRetryIntervalMillis

      public long getMaxRetryIntervalMillis()
    • setMaxRetryIntervalMillis

      public void setMaxRetryIntervalMillis(long maxRetryIntervalMillis)
    • isUseExponentialBackoff

      public boolean isUseExponentialBackoff()
    • setUseExponentialBackoff

      public void setUseExponentialBackoff(boolean useExponentialBackoff)
    • getBackoffMultiplier

      public double getBackoffMultiplier()
    • setBackoffMultiplier

      public void setBackoffMultiplier(double backoffMultiplier)
    • getMaxFileSize

      public long getMaxFileSize()
    • setMaxFileSize

      public void setMaxFileSize(long maxFileSize)
    • getMinFileSize

      public long getMinFileSize()
    • setMinFileSize

      public void setMinFileSize(long minFileSize)
    • isEnableFileSizeValidation

      public boolean isEnableFileSizeValidation()
    • setEnableFileSizeValidation

      public void setEnableFileSizeValidation(boolean enableFileSizeValidation)
    • withMaxRetryAttempts

      public DashScopeDocumentCloudReaderConfig withMaxRetryAttempts(int maxRetryAttempts)
    • withRetryIntervalSeconds

      public DashScopeDocumentCloudReaderConfig withRetryIntervalSeconds(long seconds)
    • withInitialWaitMillis

      public DashScopeDocumentCloudReaderConfig withInitialWaitMillis(long seconds)
    • withMaxRetryIntervalSeconds

      public DashScopeDocumentCloudReaderConfig withMaxRetryIntervalSeconds(long seconds)
    • withMaxFileSizeMB

      public DashScopeDocumentCloudReaderConfig withMaxFileSizeMB(int megabytes)
    • withMinFileSizeBytes

      public DashScopeDocumentCloudReaderConfig withMinFileSizeBytes(long bytes)
    • withoutFileSizeValidation

      public DashScopeDocumentCloudReaderConfig withoutFileSizeValidation()
    • toString

      public String toString()
      Overrides:
      toString in class Object