aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index ac2adca8a..dcd9aaa28 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -1937,8 +1937,8 @@ public final class Keys {
"time,position,speed,course,accuracy,result");
/**
- * Broadcast method. Available options are "multicast" and "redis". By default (if the value is not
- * specified or does not matches available options) server disables broadcast.
+ * Broadcast method. Available options are "multicast" and "redis". By default, (if the value is not
+ * specified or does not match available options) server disables broadcast.
*/
public static final ConfigKey<String> BROADCAST_TYPE = new StringConfigKey(
"broadcast.type",
@@ -1965,4 +1965,11 @@ public final class Keys {
"broadcast.port",
List.of(KeyType.CONFIG));
+ /**
+ * Flag to mark secondary servers. Some tasks, like scheduled reports, will be executed on the main server only.
+ */
+ public static final ConfigKey<Boolean> BROADCAST_SECONDARY = new BooleanConfigKey(
+ "broadcast.secondary",
+ List.of(KeyType.CONFIG));
+
}