Config for being able to ratelimit API calls towards GCS
@@ -480,6 +480,10 @@ public class SecorConfig {
return getString("secor.gs.path");
}
+ public double getGsRateLimit() {
+ return getDouble("secor.gs.tasks.ratelimit.pr.second", 10.0);
+ }
+
public int getGsConnectTimeoutInMs() {
return getInt("secor.gs.connect.timeout.ms", 3 * 60000);
}
@@ -584,6 +588,10 @@ public class SecorConfig {
return mProperties.getInt(name, defaultValue);
}
+ public double getDouble(String name, double defaultValue) {
+ return mProperties.getDouble(name, defaultValue);
+ }
+
public long getLong(String name) {
return mProperties.getLong(name);
}
