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

com.qcloud.cos.auth.InstanceCredentialsRetryPolicy Maven / Gradle / Ivy

There is a newer version: 5.6.238.2
Show newest version
package com.qcloud.cos.auth;

public class InstanceCredentialsRetryPolicy implements CredentialsEndpointRetryPolicy {
    private static final int MAX_RETRIES = 5;

    private static InstanceCredentialsRetryPolicy instance;

    public static InstanceCredentialsRetryPolicy getInstance() {
        if (null == instance) {
            instance = new InstanceCredentialsRetryPolicy();
        }

        return instance;
    }

    private InstanceCredentialsRetryPolicy() {
    }

    @Override
    public boolean shouldRetry(int attemptedRetries, CredentialsEndpointRetryParameters retryParameters) {
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy