Class BatchSender.Builder
java.lang.Object
cloud.opencode.base.sms.batch.BatchSender.Builder
- Enclosing class:
BatchSender
Builder for BatchSender
BatchSender构建器
- Since:
- JDK 25, opencode-base-sms V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Method Summary
Modifier and TypeMethodDescriptionbatchSize(int batchSize) Set batch size 设置批量大小build()Build batch sender 构建批量发送器concurrency(int concurrency) Set concurrency 设置并发数onProgress(Consumer<BatchSender.BatchProgress> callback) Set progress callback 设置进度回调Set timeout 设置超时validatePhones(boolean validate) Set phone validation 设置手机号验证
-
Method Details
-
batchSize
Set batch size 设置批量大小- Parameters:
batchSize- the batch size | 批量大小- Returns:
- this builder | 此构建器
-
concurrency
Set concurrency 设置并发数- Parameters:
concurrency- the concurrency | 并发数- Returns:
- this builder | 此构建器
-
timeout
Set timeout 设置超时- Parameters:
timeout- the timeout | 超时时间- Returns:
- this builder | 此构建器
-
validatePhones
Set phone validation 设置手机号验证- Parameters:
validate- whether to validate | 是否验证- Returns:
- this builder | 此构建器
-
onProgress
Set progress callback 设置进度回调- Parameters:
callback- the callback | 回调函数- Returns:
- this builder | 此构建器
-
build
-