diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-07 21:21:22 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-07 21:21:22 -0800 |
commit | bf51c1994531da91f364b81d6d8c0778ed9c3570 (patch) | |
tree | d39930217931b52a763162dc946c72822a524d9b /src/org/traccar/config | |
parent | 4e68a40c77240800dce14094b4cc55907410c208 (diff) | |
download | traccar-server-bf51c1994531da91f364b81d6d8c0778ed9c3570.tar.gz traccar-server-bf51c1994531da91f364b81d6d8c0778ed9c3570.tar.bz2 traccar-server-bf51c1994531da91f364b81d6d8c0778ed9c3570.zip |
Refactor overspeed handler
Diffstat (limited to 'src/org/traccar/config')
-rw-r--r-- | src/org/traccar/config/Keys.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/org/traccar/config/Keys.java b/src/org/traccar/config/Keys.java index dc5560daf..c7c5d16c6 100644 --- a/src/org/traccar/config/Keys.java +++ b/src/org/traccar/config/Keys.java @@ -46,6 +46,24 @@ public final class Keys { "event.enable", Boolean.class); /** + * If true, the event is generated once at the beginning of overspeeding period. + */ + public static final ConfigKey EVENT_OVERSPEED_NOT_REPEAT = new ConfigKey( + "event.overspeed.notRepeat", Boolean.class); + + /** + * Minimal over speed duration to trigger the event. Value in seconds. + */ + public static final ConfigKey EVENT_OVERSPEED_MINIMAL_DURATION = new ConfigKey( + "event.overspeed.minimalDuration", Long.class); + + /** + * Relevant only for geofence speed limits. Use lowest speed limits from all geofences. + */ + public static final ConfigKey EVENT_OVERSPEED_PREFER_LOWEST = new ConfigKey( + "event.overspeed.preferLowest", Boolean.class); + + /** * List of external handler classes to use in Netty pipeline. */ public static final ConfigKey EXTRA_HANDLERS = new ConfigKey( |