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

usn.net.ssl.util.TimeoutSettings Maven / Gradle / Ivy

Go to download

A utility to add certs to the trust store from a connection attempt, originially written by Oracle

There is a newer version: 1.0.16
Show newest version
package usn.net.ssl.util;

/**
 * Adjustable timeout settings
 *
 * @author AO
 */
public class TimeoutSettings {

    //used for connection and socket timeouts
    private static int connectionTimeout = 10000;
    //used for async protocol handlers
    private static int overallTimeout = 15000;

    public static int getConnectionTimeout() {
        return connectionTimeout;
    }

    public static void setConnectionTimeout(int aConnectionTimeout) {
        connectionTimeout = aConnectionTimeout;
    }

    public static int getOverallTimeout() {
        return overallTimeout;
    }

    public static void setOverallTimeout(int aOverallTimeout) {
        overallTimeout = aOverallTimeout;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy