aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/MainModule.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-02-25 17:40:26 -0800
committerGitHub <noreply@github.com>2020-02-25 17:40:26 -0800
commit9662f1d3b813bbdead7613f6919e23b6fe76c6db (patch)
tree577ac39d17687a07531194e40bbbc23764a98d1a /src/main/java/org/traccar/MainModule.java
parent7db2926c38edafb4cbd9b2cda1a98b5567836bc1 (diff)
parent1049b01a22e28acb69ea530de824608b72c8222c (diff)
downloadtrackermap-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.java7
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();