diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-29 22:38:33 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-12-29 22:38:33 -0800 |
commit | 449941043a8303e1cca7c63b28e84b6b53c6871c (patch) | |
tree | 82ccd6430eb6f6fe6e199fb2b7fb46aef9e1f3bb /src/main/java/org/traccar/config/Keys.java | |
parent | bdb4aea7ddb7f525d5c476077a88d905d261fdb8 (diff) | |
download | trackermap-server-449941043a8303e1cca7c63b28e84b6b53c6871c.tar.gz trackermap-server-449941043a8303e1cca7c63b28e84b6b53c6871c.tar.bz2 trackermap-server-449941043a8303e1cca7c63b28e84b6b53c6871c.zip |
Migrate more keys
Diffstat (limited to 'src/main/java/org/traccar/config/Keys.java')
-rw-r--r-- | src/main/java/org/traccar/config/Keys.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java index da6c46ee9..d443509e5 100644 --- a/src/main/java/org/traccar/config/Keys.java +++ b/src/main/java/org/traccar/config/Keys.java @@ -315,6 +315,13 @@ public final class Keys { 300L); /** + * Store empty messages as positions. For example, heartbeats. + */ + public static final ConfigKey<Boolean> DATABASE_SAVE_EMPTY = new ConfigKey<>( + "database.saveEmpty", + Collections.singletonList(KeyType.GLOBAL)); + + /** * Device limit for self registered users. Default value is -1, which indicates no limit. */ public static final ConfigKey<Integer> USERS_DEFAULT_DEVICE_LIMIT = new ConfigKey<>( @@ -553,6 +560,14 @@ public final class Keys { Collections.singletonList(KeyType.GLOBAL)); /** + * Enable commands queuing when devices are offline. Commands are buffered in memory only, so restarting service + * will clear the buffer. + */ + public static final ConfigKey<Boolean> COMMANDS_QUEUEING = new ConfigKey<>( + "commands.queueing", + Collections.singletonList(KeyType.GLOBAL)); + + /** * SMS API service full URL. Enables SMS commands and notifications. */ public static final ConfigKey<String> SMS_HTTP_URL = new ConfigKey<>( |