aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config/Keys.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-05-04 19:56:42 -0700
committerAnton Tananaev <anton@traccar.org>2024-05-04 19:56:42 -0700
commit5d647be37332790aab41731d52e8dcadac9d5eb4 (patch)
treecbd5414673095d05519298da1807876e1ca46f24 /src/main/java/org/traccar/config/Keys.java
parent5d131bdb8f9a49d5da508eb5073d21014f7185a2 (diff)
downloadtrackermap-server-5d647be37332790aab41731d52e8dcadac9d5eb4.tar.gz
trackermap-server-5d647be37332790aab41731d52e8dcadac9d5eb4.tar.bz2
trackermap-server-5d647be37332790aab41731d52e8dcadac9d5eb4.zip
Improve daily limit throttling
Diffstat (limited to 'src/main/java/org/traccar/config/Keys.java')
-rw-r--r--src/main/java/org/traccar/config/Keys.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 0898e8f0a..5d9a43c01 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -1443,13 +1443,20 @@ public final class Keys {
List.of(KeyType.CONFIG));
/**
- * Filter position if the daily limit is exceeded for the device.
+ * Throttle positions if the daily limit is exceeded for the device.
*/
public static final ConfigKey<Integer> FILTER_DAILY_LIMIT = new IntegerConfigKey(
"filter.dailyLimit",
List.of(KeyType.CONFIG));
/**
+ * Throttling interval if the limit exceeded. The value is in seconds.
+ */
+ public static final ConfigKey<Integer> FILTER_DAILY_LIMIT_INTERVAL = new IntegerConfigKey(
+ "filter.dailyLimitInterval",
+ List.of(KeyType.CONFIG));
+
+ /**
* If false, the server expects all locations to come sequentially (for each device). Filter checks for duplicates,
* distance, speed, or time period only against the location that was last received by server.
* If true, the server expects locations to come at random order (since tracking device might go offline).