44 lines
1.5 KiB
Java
44 lines
1.5 KiB
Java
|
package com.google.firebase.remoteconfig;
|
||
|
|
||
|
import com.google.firebase.remoteconfig.internal.ConfigFetchHandler;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class FirebaseRemoteConfigSettings {
|
||
|
private final long fetchTimeoutInSeconds;
|
||
|
private final long minimumFetchInterval;
|
||
|
|
||
|
private FirebaseRemoteConfigSettings(Builder builder) {
|
||
|
this.fetchTimeoutInSeconds = builder.fetchTimeoutInSeconds;
|
||
|
this.minimumFetchInterval = builder.minimumFetchInterval;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public static class Builder {
|
||
|
private long fetchTimeoutInSeconds = 60;
|
||
|
private long minimumFetchInterval = ConfigFetchHandler.DEFAULT_MINIMUM_FETCH_INTERVAL_IN_SECONDS;
|
||
|
|
||
|
public Builder setMinimumFetchIntervalInSeconds(long j) {
|
||
|
if (j >= 0) {
|
||
|
this.minimumFetchInterval = j;
|
||
|
return this;
|
||
|
}
|
||
|
StringBuilder sb = new StringBuilder("Minimum interval between fetches has to be a non-negative number. ");
|
||
|
sb.append(j);
|
||
|
sb.append(" is an invalid argument");
|
||
|
throw new IllegalArgumentException(sb.toString());
|
||
|
}
|
||
|
|
||
|
public FirebaseRemoteConfigSettings build() {
|
||
|
return new FirebaseRemoteConfigSettings(this);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public long getMinimumFetchIntervalInSeconds() {
|
||
|
return this.minimumFetchInterval;
|
||
|
}
|
||
|
|
||
|
public long getFetchTimeoutInSeconds() {
|
||
|
return this.fetchTimeoutInSeconds;
|
||
|
}
|
||
|
}
|