Class DashScopeDocumentCloudReaderConfig
java.lang.Object
com.alibaba.cloud.ai.dashscope.rag.DashScopeDocumentCloudReaderConfig
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final longDefault maximum file size: 10MBstatic final longDefault minimum file size: 1 byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublelonglongintlonglonglongbooleanbooleanvoidsetBackoffMultiplier(double backoffMultiplier) voidsetEnableFileSizeValidation(boolean enableFileSizeValidation) voidsetInitialWaitMillis(long initialWaitMillis) voidsetMaxFileSize(long maxFileSize) voidsetMaxRetryAttempts(int maxRetryAttempts) voidsetMaxRetryIntervalMillis(long maxRetryIntervalMillis) voidsetMinFileSize(long minFileSize) voidsetRetryIntervalMillis(long retryIntervalMillis) voidsetUseExponentialBackoff(boolean useExponentialBackoff) toString()withInitialWaitMillis(long seconds) withMaxFileSizeMB(int megabytes) withMaxRetryAttempts(int maxRetryAttempts) withMaxRetryIntervalSeconds(long seconds) withMinFileSizeBytes(long bytes) withRetryIntervalSeconds(long seconds)
-
Field Details
-
DEFAULT_MAX_FILE_SIZE
public static final long DEFAULT_MAX_FILE_SIZEDefault maximum file size: 10MB- See Also:
-
DEFAULT_MIN_FILE_SIZE
public static final long DEFAULT_MIN_FILE_SIZEDefault 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
-
withRetryIntervalSeconds
-
withInitialWaitMillis
-
withMaxRetryIntervalSeconds
-
withMaxFileSizeMB
-
withMinFileSizeBytes
-
withoutFileSizeValidation
-
toString
-