aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-03-31 08:16:28 -0700
committerAnton Tananaev <anton@traccar.org>2024-03-31 08:16:28 -0700
commitae91b2f07e88d2dea97aa4bb316cb00116b4a702 (patch)
tree4becb68d6190ae18922ee99a32bdf5aa15031eab /src/main/java/org/traccar/config
parent301a643d62ccce053a1eaf10e5516a3d5bcc815f (diff)
downloadtrackermap-server-ae91b2f07e88d2dea97aa4bb316cb00116b4a702.tar.gz
trackermap-server-ae91b2f07e88d2dea97aa4bb316cb00116b4a702.tar.bz2
trackermap-server-ae91b2f07e88d2dea97aa4bb316cb00116b4a702.zip
Implement position buffering
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 4aacb2cd8..d346084bd 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -293,6 +293,14 @@ public final class Keys {
false);
/**
+ * If not zero, enable buffering of incoming data to handle ordering locations. The value is threshold for
+ * buffering in milliseconds.
+ */
+ public static final ConfigKey<Long> SERVER_BUFFERING_THRESHOLD = new LongConfigKey(
+ "server.buffering.threshold",
+ List.of(KeyType.CONFIG));
+
+ /**
* Server wide connection timeout value in seconds. See protocol timeout for more information.
*/
public static final ConfigKey<Integer> SERVER_TIMEOUT = new IntegerConfigKey(