aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-11-14 08:19:22 -0800
committerAnton Tananaev <anton@traccar.org>2022-11-14 08:19:22 -0800
commit77c1e617587947c431b77773f53da5e222f4dd61 (patch)
tree5a2d54734bc178c4e52e68914518907852057f62 /src/main/java/org/traccar/config
parent826c661819d044c8f1cf950795ee0f33cc7675c6 (diff)
downloadtrackermap-server-77c1e617587947c431b77773f53da5e222f4dd61.tar.gz
trackermap-server-77c1e617587947c431b77773f53da5e222f4dd61.tar.bz2
trackermap-server-77c1e617587947c431b77773f53da5e222f4dd61.zip
Customizable Kafka topic
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 2224192d9..9ae71921e 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -707,6 +707,14 @@ public final class Keys {
"url");
/**
+ * Position forwarding Kafka topic.
+ */
+ public static final ConfigKey<String> FORWARD_TOPIC = new StringConfigKey(
+ "forward.topic",
+ List.of(KeyType.CONFIG),
+ "positions");
+
+ /**
* URL to forward positions. Data is passed through URL parameters. For example, {uniqueId} for device identifier,
* {latitude} and {longitude} for coordinates.
*/
@@ -768,6 +776,14 @@ public final class Keys {
"json");
/**
+ * Events forwarding Kafka topic.
+ */
+ public static final ConfigKey<String> EVENT_FORWARD_TOPIC = new StringConfigKey(
+ "event.forward.topic",
+ List.of(KeyType.CONFIG),
+ "events");
+
+ /**
* Events forwarding URL.
*/
public static final ConfigKey<String> EVENT_FORWARD_URL = new StringConfigKey(