diff options
author | Anton Tananaev <anton@traccar.org> | 2022-11-13 11:48:43 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-11-13 11:48:43 -0800 |
commit | 5877cb1b3f1fa7331c4310b9754a3ec442586497 (patch) | |
tree | 6cc3e7193412aa152c1b593bf0ad7e4119687a1e /src/main/java/org/traccar/config | |
parent | ff793b2e2872f8ba076e748fab41d944f92b64d4 (diff) | |
download | trackermap-server-5877cb1b3f1fa7331c4310b9754a3ec442586497.tar.gz trackermap-server-5877cb1b3f1fa7331c4310b9754a3ec442586497.tar.bz2 trackermap-server-5877cb1b3f1fa7331c4310b9754a3ec442586497.zip |
Refactor position forwarding
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r-- | src/main/java/org/traccar/config/Keys.java | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java index 1da01518c..b60cd82a0 100644 --- a/src/main/java/org/traccar/config/Keys.java +++ b/src/main/java/org/traccar/config/Keys.java @@ -721,14 +721,6 @@ public final class Keys { List.of(KeyType.CONFIG)); /** - * Boolean value to enable URL parameters in json mode. For example, {uniqueId} for device identifier, - * {latitude} and {longitude} for coordinates. - */ - public static final ConfigKey<Boolean> FORWARD_URL_VARIABLES = new BooleanConfigKey( - "forward.urlVariables", - List.of(KeyType.CONFIG)); - - /** * Position forwarding retrying enable. When enabled, additional attempts are made to deliver positions. If initial * delivery fails, because of an unreachable server or an HTTP response different from '2xx', the software waits * for 'forward.retry.delay' milliseconds to retry delivery. On subsequent failures, this delay is duplicated. @@ -745,7 +737,8 @@ public final class Keys { */ public static final ConfigKey<Integer> FORWARD_RETRY_DELAY = new IntegerConfigKey( "forward.retry.delay", - List.of(KeyType.CONFIG)); + List.of(KeyType.CONFIG), + 100); /** * Position forwarding retry maximum retries. @@ -753,7 +746,8 @@ public final class Keys { */ public static final ConfigKey<Integer> FORWARD_RETRY_COUNT = new IntegerConfigKey( "forward.retry.count", - List.of(KeyType.CONFIG)); + List.of(KeyType.CONFIG), + 10); /** * Position forwarding retry pending positions limit. @@ -761,7 +755,8 @@ public final class Keys { */ public static final ConfigKey<Integer> FORWARD_RETRY_LIMIT = new IntegerConfigKey( "forward.retry.limit", - List.of(KeyType.CONFIG)); + List.of(KeyType.CONFIG), + 100); /** * Events forwarding URL. |