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

com.signalfx.connection.RetryDefaults Maven / Gradle / Ivy

There is a newer version: 1.0.45
Show newest version
package com.signalfx.connection;

import java.io.IOException;
import java.io.InterruptedIOException;
import java.net.ConnectException;
import java.net.UnknownHostException;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public final class RetryDefaults {
    private RetryDefaults() {
    }

    public static final int DEFAULT_MAX_RETRIES = 3;
    public static final List> DEFAULT_NON_RETRYABLE_EXCEPTIONS = Collections.unmodifiableList(Arrays.asList(
            InterruptedIOException.class,
            UnknownHostException.class,
            ConnectException.class));
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy