aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2023-06-10 07:50:41 -0700
committerGitHub <noreply@github.com>2023-06-10 07:50:41 -0700
commitce227642dceffd3d014c23d096d08954a168f916 (patch)
tree2b889555514396cacddae4908a7320aa854e5de8 /src/main/java/org/traccar/config
parentffbfba88830561b27e1d15857fed664f4b7813ba (diff)
parentdc22bc5feef7887d3baec1b2904fc18e1d067378 (diff)
downloadtrackermap-server-ce227642dceffd3d014c23d096d08954a168f916.tar.gz
trackermap-server-ce227642dceffd3d014c23d096d08954a168f916.tar.bz2
trackermap-server-ce227642dceffd3d014c23d096d08954a168f916.zip
Merge pull request #5107 from reajuria/feature/redis-broadcast
Feature/redis broadcast
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index d4780ba46..1ff1d1b51 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -1756,6 +1756,14 @@ 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.
+ */
+ public static final ConfigKey<String> BROADCAST_TYPE = new StringConfigKey(
+ "broadcast.type",
+ List.of(KeyType.CONFIG));
+
+ /**
* Multicast interface. It can be either an IP address or an interface name.
*/
public static final ConfigKey<String> BROADCAST_INTERFACE = new StringConfigKey(
@@ -1763,7 +1771,7 @@ public final class Keys {
List.of(KeyType.CONFIG));
/**
- * Multicast address for broadcasting synchronization events.
+ * Multicast address or Redis URL for broadcasting synchronization events.
*/
public static final ConfigKey<String> BROADCAST_ADDRESS = new StringConfigKey(
"broadcast.address",