All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.tinkoff.kora.s3.client.minio.MinioS3ClientConfig Maven / Gradle / Ivy

There is a newer version: 1.1.15
Show newest version
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