what-the-bank/sources/com/kofax/mobile/sdk/extract/server/TimeOutParameters.java

36 lines
915 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.kofax.mobile.sdk.extract.server;
import java.util.concurrent.TimeUnit;
/* loaded from: classes3.dex */
public class TimeOutParameters {
private long aga;
private TimeUnit agb;
public TimeOutParameters(long j, TimeUnit timeUnit) {
if (j < 0) {
throw new IllegalArgumentException("timeout < 0");
}
if (timeUnit == null) {
throw new NullPointerException("unit == null");
}
long millis = timeUnit.toMillis(j);
if (millis > 2147483647L) {
throw new IllegalArgumentException("Timeout too large.");
}
if (millis == 0 && j > 0) {
throw new IllegalArgumentException("Timeout too small.");
}
this.aga = j;
this.agb = timeUnit;
}
public TimeUnit getUnit() {
return this.agb;
}
public long getTimeOut() {
return this.aga;
}
}