diff options
author | Anton Tananaev <anton@traccar.org> | 2023-11-18 06:00:37 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-11-18 06:00:37 -0800 |
commit | a9ba9a58a868309a9fc83cdb8710159c7786ca32 (patch) | |
tree | c074fada48f5c65f532af0b355ab36d3937dd4da /src/main/java/org/traccar/config/Keys.java | |
parent | e5827b74db9432392b702f676fedb2aaacfd69f0 (diff) | |
download | trackermap-server-a9ba9a58a868309a9fc83cdb8710159c7786ca32.tar.gz trackermap-server-a9ba9a58a868309a9fc83cdb8710159c7786ca32.tar.bz2 trackermap-server-a9ba9a58a868309a9fc83cdb8710159c7786ca32.zip |
Skip old event notifications (fix #5217)
Diffstat (limited to 'src/main/java/org/traccar/config/Keys.java')
-rw-r--r-- | src/main/java/org/traccar/config/Keys.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java index e7b07791f..3059c4f4b 100644 --- a/src/main/java/org/traccar/config/Keys.java +++ b/src/main/java/org/traccar/config/Keys.java @@ -1168,6 +1168,15 @@ public final class Keys { List.of(KeyType.CONFIG)); /** + * If the event time is too old, we should not send notifications. This parameter is the threshold value in + * milliseconds. Default value is 15 minutes. + */ + public static final ConfigKey<Long> NOTIFICATOR_TIME_THRESHOLD = new LongConfigKey( + "notificator.timeThreshold", + List.of(KeyType.CONFIG), + 15 * 60 * 1000L); + + /** * Traccar notification API key. */ public static final ConfigKey<String> NOTIFICATOR_TRACCAR_KEY = new StringConfigKey( |