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/MainModule.java | |
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/MainModule.java')
-rw-r--r-- | src/main/java/org/traccar/MainModule.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java index 0957d9fe3..c3c0182d7 100644 --- a/src/main/java/org/traccar/MainModule.java +++ b/src/main/java/org/traccar/MainModule.java @@ -73,6 +73,7 @@ import org.traccar.reports.model.TripsConfig; import javax.annotation.Nullable; import javax.ws.rs.client.Client; +import io.netty.util.Timer; public class MainModule extends AbstractModule { @@ -375,6 +376,12 @@ public class MainModule extends AbstractModule { return new DriverEventHandler(identityManager); } + @Singleton + @Provides + public static Timer provideTimer() { + return GlobalTimer.getTimer(); + } + @Override protected void configure() { binder().requireExplicitBindings(); |