Class SafeImageService.Builder
java.lang.Object
cloud.opencode.base.image.security.SafeImageService.Builder
- Enclosing class:
SafeImageService
Safe Image Service Builder
安全图片服务构建器
- Since:
- JDK 25, opencode-base-image V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the service 构建服务maxConcurrent(int maxConcurrent) Set maximum concurrent operations 设置最大并发操作数maxDimensions(int maxWidth, int maxHeight) Set maximum dimensions 设置最大尺寸maxFileSize(long maxFileSize) Set maximum file size 设置最大文件大小maxHeight(int maxHeight) Set maximum height 设置最大高度maxWidth(int maxWidth) Set maximum width 设置最大宽度Set operation timeout 设置操作超时时间
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxFileSize
Set maximum file size 设置最大文件大小- Parameters:
maxFileSize- the max size in bytes | 最大大小(字节)- Returns:
- this builder | 构建器
-
maxWidth
Set maximum width 设置最大宽度- Parameters:
maxWidth- the max width | 最大宽度- Returns:
- this builder | 构建器
-
maxHeight
Set maximum height 设置最大高度- Parameters:
maxHeight- the max height | 最大高度- Returns:
- this builder | 构建器
-
maxDimensions
Set maximum dimensions 设置最大尺寸- Parameters:
maxWidth- the max width | 最大宽度maxHeight- the max height | 最大高度- Returns:
- this builder | 构建器
-
timeout
Set operation timeout 设置操作超时时间- Parameters:
timeout- the timeout | 超时时间- Returns:
- this builder | 构建器
-
maxConcurrent
Set maximum concurrent operations 设置最大并发操作数- Parameters:
maxConcurrent- the max concurrent | 最大并发数- Returns:
- this builder | 构建器
-
build
-