ru.tinkoff.kora.s3.client.minio.MinioS3ClientConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of s3-client-minio Show documentation
Show all versions of s3-client-minio Show documentation
Kora s3-client-minio module
package ru.tinkoff.kora.s3.client.minio;
import org.jetbrains.annotations.ApiStatus;
import ru.tinkoff.kora.common.util.Size;
import ru.tinkoff.kora.config.common.annotation.ConfigValueExtractor;
import java.time.Duration;
@ApiStatus.Experimental
@ConfigValueExtractor
public interface MinioS3ClientConfig {
enum AddressStyle {
PATH,
VIRTUAL_HOSTED
}
default AddressStyle addressStyle() {
return AddressStyle.PATH;
}
default Duration requestTimeout() {
return Duration.ofSeconds(45);
}
UploadConfig upload();
@ConfigValueExtractor
interface UploadConfig {
default Size partSize() {
return Size.of(8, Size.Type.MiB);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy