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

org.frameworkset.nosql.minio.MinioConfig Maven / Gradle / Ivy

The newest version!
package org.frameworkset.nosql.minio;
/**
 * Copyright 2024 bboss
 * 

* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *

* http://www.apache.org/licenses/LICENSE-2.0 *

* Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import okhttp3.OkHttpClient; /** *

Description:

*

* * @author biaoping.yin * @Date 2024/8/7 */ public class MinioConfig { private String name; private String endpoint; private String accessKeyId; private String secretAccesskey; private String region; private OkHttpClient httpClient; private long maxFilePartSize = 10 * 1024 * 1024; private int connectTimeout = 60000; private int readTimeout = 60000; private int writeTimeout = 60000; public int getConnectTimeout() { return connectTimeout; } public void setConnectTimeout(int connectTimeout) { this.connectTimeout = connectTimeout; } public long getMaxFilePartSize() { return maxFilePartSize; } public void setMaxFilePartSize(long maxFilePartSize) { this.maxFilePartSize = maxFilePartSize; } public int getReadTimeout() { return readTimeout; } public void setReadTimeout(int readTimeout) { this.readTimeout = readTimeout; } public int getWriteTimeout() { return writeTimeout; } public void setWriteTimeout(int writeTimeout) { this.writeTimeout = writeTimeout; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getEndpoint() { return endpoint; } public void setEndpoint(String endpoint) { this.endpoint = endpoint; } public String getAccessKeyId() { return accessKeyId; } public void setAccessKeyId(String accessKeyId) { this.accessKeyId = accessKeyId; } public String getSecretAccesskey() { return secretAccesskey; } public void setSecretAccesskey(String secretAccesskey) { this.secretAccesskey = secretAccesskey; } public String getRegion() { return region; } public void setRegion(String region) { this.region = region; } public OkHttpClient getHttpClient() { return httpClient; } public void setHttpClient(OkHttpClient httpClient) { this.httpClient = httpClient; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy