Skip to content
Snippets Groups Projects
Unverified Commit e3c15036 authored by Luc Everse's avatar Luc Everse :passport_control:
Browse files

Set default timeout to one minute

parent 7980213d
No related branches found
No related tags found
2 merge requests!148Release 2.3.0,!137Worker timeout
package nl.tudelft.ewi.auta.core.model;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.HashSet;
import java.util.Objects;
import java.util.Set;
......@@ -85,7 +87,7 @@ public class Assignment {
/**
* The worker timeout in number of seconds.
*/
private Integer timeout = 0;
private int timeout = (int) Duration.of(10, ChronoUnit.MINUTES).getSeconds();
/**
* Create a new assignment object.
......@@ -152,7 +154,7 @@ public class Assignment {
* Returns the worker timeout.
* @return the worker timeout in seconds.
*/
public Integer getTimeout() {
public int getTimeout() {
return this.timeout;
}
......@@ -160,7 +162,7 @@ public class Assignment {
* Returns the worker timeout.
* @param timeout the worker timeout in seconds.
*/
public void setTimeout(final Integer timeout) {
public void setTimeout(final int timeout) {
this.timeout = timeout;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment