aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config/Keys.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-11-27 11:14:15 -0800
committerAnton Tananaev <anton@traccar.org>2022-11-27 11:14:15 -0800
commit20ca33bf17c30bf2335d85365a224bc437e0347b (patch)
tree80b57985f09dd898d4cfdaab6c3726d08efea9d8 /src/main/java/org/traccar/config/Keys.java
parent146de22b51139edcc3132f403e86006ac1fc3419 (diff)
downloadtrackermap-server-20ca33bf17c30bf2335d85365a224bc437e0347b.tar.gz
trackermap-server-20ca33bf17c30bf2335d85365a224bc437e0347b.tar.bz2
trackermap-server-20ca33bf17c30bf2335d85365a224bc437e0347b.zip
Unknown device 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 9ae71921e..09662fc85 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -452,7 +452,14 @@ public final class Keys {
List.of(KeyType.CONFIG));
/**
- * By default server syncs with the database if it encounters and unknown device. This flag allows to disable that
+ * Throttle unknown device database queries when it sends repeated requests.
+ */
+ public static final ConfigKey<Boolean> DATABASE_THROTTLE_UNKNOWN = new BooleanConfigKey(
+ "database.throttleUnknown",
+ List.of(KeyType.CONFIG));
+
+ /**
+ * By default, server syncs with the database if it encounters and unknown device. This flag allows to disable that
* behavior to improve performance in some cases.
*/
public static final ConfigKey<Boolean> DATABASE_IGNORE_UNKNOWN = new BooleanConfigKey(