Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
JTerminationCriteriaDuration.java
Go to the documentation of this file.
1 package com.griddynamics.jagger.user.test.configurations.termination;
2 
3 import com.griddynamics.jagger.user.test.configurations.termination.auxiliary.DurationInSeconds;
4 
5 import java.util.Objects;
6 
13 
14  private final long durationInSeconds;
15 
20  public JTerminationCriteriaDuration(DurationInSeconds durationInSeconds) {
21  Objects.requireNonNull(durationInSeconds);
22 
23  this.durationInSeconds = durationInSeconds.value();
24  }
25 
30  public static JTerminationCriteriaDuration of(DurationInSeconds durationInSeconds) {
31  return new JTerminationCriteriaDuration(durationInSeconds);
32  }
33 
34  public long getDurationInSeconds() {
35  return durationInSeconds;
36  }
37 }