36 lines
915 B
Java
36 lines
915 B
Java
|
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;
|
||
|
}
|
||
|
}
|