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

io.quarkiverse.minio.client.MinioRecorder Maven / Gradle / Ivy

The newest version!
package io.quarkiverse.minio.client;

import java.util.function.Supplier;

import io.minio.MinioAsyncClient;
import io.minio.MinioClient;
import io.quarkus.runtime.annotations.Recorder;

@Recorder
public class MinioRecorder {

    public Supplier minioClientSupplier(String minioClientName,
            @SuppressWarnings("unused") MiniosRuntimeConfiguration minioRuntimeConfig) {
        return () -> MinioClients.fromName(minioClientName);
    }

    public Supplier minioAsyncClientSupplier(String minioClientName,
            @SuppressWarnings("unused") MiniosRuntimeConfiguration minioRuntimeConfig) {
        return () -> MinioClients.fromNameAsync(minioClientName);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy