io.signpath.signpathclient.ClientSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-client Show documentation
Show all versions of api-client Show documentation
A Client for the SignPath API
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;
}
}