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

com.obs.services.internal.ext.ExtObsConfiguration Maven / Gradle / Ivy

Go to download

The HuaweiCloud OBS Bundle SDK for Java used for accessing Object Storage Service, this SDK bundle includes third-party libraries and relocated to different namespaces

The newest version!
package com.obs.services.internal.ext;

import com.obs.services.ObsConfiguration;

public class ExtObsConfiguration extends ObsConfiguration {

    private boolean retryOnConnectionFailureInOkhttp;

    // times for retryOnRetryOnUnexpectedEndException;
    private int maxRetryOnUnexpectedEndException;

    public ExtObsConfiguration() {
        super();
        this.retryOnConnectionFailureInOkhttp = ExtObsConstraint.DEFAULT_RETRY_ON_CONNECTION_FAILURE_IN_OKHTTP;
        this.maxRetryOnUnexpectedEndException = ExtObsConstraint.DEFAULT_MAX_RETRY_ON_UNEXPECTED_END_EXCEPTION;
    }

    public boolean isRetryOnConnectionFailureInOkhttp() {
        return retryOnConnectionFailureInOkhttp;
    }

    public void retryOnConnectionFailureInOkhttp(boolean retryOnConnectionFailureInOkhttp) {
        this.retryOnConnectionFailureInOkhttp = retryOnConnectionFailureInOkhttp;
    }

    public int getMaxRetryOnUnexpectedEndException() {
        return maxRetryOnUnexpectedEndException;
    }

    public void setMaxRetryOnUnexpectedEndException(int maxRetryOnUnexpectedEndException) {
        this.maxRetryOnUnexpectedEndException = maxRetryOnUnexpectedEndException;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy