org.frameworkset.nosql.minio.MinioConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bboss-data Show documentation
Show all versions of bboss-data Show documentation
bboss http an http cluster lb component.
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 com.fasterxml.jackson.annotation.JsonIgnore;
import okhttp3.OkHttpClient;
import java.util.concurrent.TimeUnit;
/**
*
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;
@JsonIgnore
private OkHttpClient httpClient;
private long maxFilePartSize = 10 * 1024 * 1024;
private int connectTimeout = 60000;
private int readTimeout = 60000;
private int writeTimeout = 60000;
private int poolMaxIdleConnections = 5;
private int poolKeepAliveDuration = 5;
@JsonIgnore
private TimeUnit poolTimeUnit = TimeUnit.MINUTES;
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;
}
public int getPoolMaxIdleConnections() {
return poolMaxIdleConnections;
}
public void setPoolMaxIdleConnections(int poolMaxIdleConnections) {
this.poolMaxIdleConnections = poolMaxIdleConnections;
}
public int getPoolKeepAliveDuration() {
return poolKeepAliveDuration;
}
public void setPoolKeepAliveDuration(int poolKeepAliveDuration) {
this.poolKeepAliveDuration = poolKeepAliveDuration;
}
public TimeUnit getPoolTimeUnit() {
return poolTimeUnit;
}
public void setPoolTimeUnit(TimeUnit poolTimeUnit) {
this.poolTimeUnit = poolTimeUnit;
}
}