Class S3Source.Builder
java.lang.Object
dev.hardwood.s3.S3Source.Builder
- Enclosing class:
S3Source
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theS3Source.connectTimeout(Duration connectTimeout) Sets the connect timeout for the HTTP client (default 10 seconds).credentials(S3Credentials credentials) Sets static credentials (convenience shorthand).credentials(S3CredentialsProvider provider) Sets the credential provider.Sets the endpoint for S3-compatible services (e.g. MinIO, R2, GCP).httpClient(HttpClient httpClient) Sets a customHttpClientfor full control over connection pooling and transport settings.maxRetries(int maxRetries) Sets the maximum number of retries for GET requests on transient failures (HTTP 500/503 and network errors).pathStyle(boolean pathStyle) Forces path-style access (endpoint/bucket/keyinstead ofbucket.endpoint/key).Sets the AWS region (e.g."eu-west-1","auto").requestTimeout(Duration requestTimeout) Sets the per-request timeout for individual HTTP requests (default 30 seconds).
-
Method Details
-
region
Sets the AWS region (e.g."eu-west-1","auto"). -
endpoint
Sets the endpoint for S3-compatible services (e.g. MinIO, R2, GCP). -
pathStyle
Forces path-style access (endpoint/bucket/keyinstead ofbucket.endpoint/key). -
credentials
Sets the credential provider. -
credentials
Sets static credentials (convenience shorthand). -
connectTimeout
Sets the connect timeout for the HTTP client (default 10 seconds). -
requestTimeout
Sets the per-request timeout for individual HTTP requests (default 30 seconds). -
maxRetries
Sets the maximum number of retries for GET requests on transient failures (HTTP 500/503 and network errors). Default is 3. -
httpClient
Sets a customHttpClientfor full control over connection pooling and transport settings. When provided, the caller is responsible for closing the client —S3Source.close()will not close it. Connect timeout is ignored when a custom client is supplied. -
build
-