Skip to content

Commit 85b58ba

Browse files
author
spaxx86
committed
Merge branch 'master' of https://github.com/sbley/Projectiler
2 parents 80f3464 + dd3ff72 commit 85b58ba

File tree

2 files changed

+266
-210
lines changed

2 files changed

+266
-210
lines changed

crawler-api/src/main/java/de/saxsys/projectiler/crawler/Settings.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package de.saxsys.projectiler.crawler;
22

3+
import java.util.concurrent.TimeUnit;
4+
35
/**
46
* Projectile settings.
57
*
@@ -15,4 +17,9 @@ public String getProjectileUrl() {
1517
public String getTimeFormat() {
1618
return "HH:mm";
1719
}
20+
21+
/** Connection timeout in millis */
22+
public int getTimeout() {
23+
return (int) TimeUnit.SECONDS.toMillis(10);
24+
}
1825
}

0 commit comments

Comments
 (0)