diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-02-25 17:40:26 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 17:40:26 -0800 |
commit | 9662f1d3b813bbdead7613f6919e23b6fe76c6db (patch) | |
tree | 577ac39d17687a07531194e40bbbc23764a98d1a /src/main/java/org/traccar/config | |
parent | 7db2926c38edafb4cbd9b2cda1a98b5567836bc1 (diff) | |
parent | 1049b01a22e28acb69ea530de824608b72c8222c (diff) | |
download | trackermap-server-9662f1d3b813bbdead7613f6919e23b6fe76c6db.tar.gz trackermap-server-9662f1d3b813bbdead7613f6919e23b6fe76c6db.tar.bz2 trackermap-server-9662f1d3b813bbdead7613f6919e23b6fe76c6db.zip |
Merge pull request #4389 from edvalley/proposed
Add an optional queue to web data handler
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r-- | src/main/java/org/traccar/config/Keys.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java index 2c5dcefd5..d88b36d28 100644 --- a/src/main/java/org/traccar/config/Keys.java +++ b/src/main/java/org/traccar/config/Keys.java @@ -101,6 +101,37 @@ public final class Keys { "forward.json", Boolean.class); /** + * 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. + * If forwarding is retried for 'forward.retry.count', retrying is canceled and the position is dropped. Positions + * pending to be delivered are limited to 'forward.retry.limit'. If this limit is reached, positions get discarded. + */ + public static final ConfigKey FORWARD_RETRY_ENABLE = new ConfigKey( + "forward.retry.enable", Boolean.class); + + /** + * Position forwarding retry first delay in milliseconds. + * Can be set to anything greater than 0. Defaults to 100 milliseconds. + */ + public static final ConfigKey FORWARD_RETRY_DELAY = new ConfigKey( + "forward.retry.delay", Integer.class); + + /** + * Position forwarding retry maximum retries. + * Can be set to anything greater than 0. Defaults to 10 retries. + */ + public static final ConfigKey FORWARD_RETRY_COUNT = new ConfigKey( + "forward.retry.count", Integer.class); + + /** + * Position forwarding retry pending positions limit. + * Can be set to anything greater than 0. Defaults to 100 positions. + */ + public static final ConfigKey FORWARD_RETRY_LIMIT = new ConfigKey( + "forward.retry.limit", Integer.class); + + /** * Boolean flag to enable or disable position filtering. */ public static final ConfigKey FILTER_ENABLE = new ConfigKey( |