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

io.signpath.signpathclient.ClientSettings Maven / Gradle / Ivy

There is a newer version: 1.0.9
Show newest version
package io.signpath.signpathclient;

/**
 *
 * @author volodymyr.bobko
 */
public class ClientSettings {
    private final int serviceUnavailableTimeoutInSeconds;
    private final int uploadAndDownloadRequestTimeoutInSeconds;
    private final int waitForCompletionTimeoutInSeconds;
    private final int waitBetweenReadinessChecksInSeconds;
    private final String userAgent;
    
    public ClientSettings(int serviceUnavailableTimeoutInSeconds,
                            int uploadAndDownloadRequestTimeoutInSeconds,
                            int waitForCompletionTimeoutInSeconds,
                            int waitBetweenReadinessChecksInSeconds,
                            String userAgent
    ) {
        this.serviceUnavailableTimeoutInSeconds = serviceUnavailableTimeoutInSeconds;
        this.uploadAndDownloadRequestTimeoutInSeconds = uploadAndDownloadRequestTimeoutInSeconds;
        this.waitForCompletionTimeoutInSeconds = waitForCompletionTimeoutInSeconds;
        this.waitBetweenReadinessChecksInSeconds = waitBetweenReadinessChecksInSeconds;
        this.userAgent = userAgent;
    }
    
    public String GetUserAgnet() {
        return userAgent;
    }
    
    public int getServiceUnavailableTimeoutInSeconds() {
        return serviceUnavailableTimeoutInSeconds;
    }

    public int getUploadAndDownloadRequestTimeoutInSeconds() {
        return uploadAndDownloadRequestTimeoutInSeconds;
    }

    public int getWaitForCompletionTimeoutInSeconds() {
        return waitForCompletionTimeoutInSeconds;
    }
    
    public int getWaitBetweenReadinessChecksInSeconds() {
        return waitBetweenReadinessChecksInSeconds;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy