8000 Add units (nanoseconds) to HealthCheck (#2187) · holgerstolzenberg/docker-java@d138d51 · GitHub
[go: up one dir, main page]

Skip to content

Commit d138d51

Browse files
SLGeddumelendez
andauthored
Add units (nanoseconds) to HealthCheck (docker-java#2187)
Co-authored-by: Eddú Meléndez Gonzales <eddu.melendez@gmail.com>
1 parent ede20db commit d138d51

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docker-java-api/src/main/java/com/github/dockerjava/api/model/HealthCheck.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,19 @@ public Long getTimeout() {
6363
return timeout;
6464
}
6565

66+
/**
67+
* Set interval in nanoseconds
68+
* @return this {@link HealthCheck} instance
69+
*/
6670
public HealthCheck withInterval(Long interval) {
6771
this.interval = interval;
6872
return this;
6973
}
7074

75+
/**
76+
* Set timeout in nanoseconds
77+
* @return this {@link HealthCheck} instance
78+
*/
7179
public HealthCheck withTimeout(Long timeout) {
7280
this.timeout = timeout;
7381
return this;
@@ -95,6 +103,10 @@ public Long getStartPeriod() {
95103
return startPeriod;
96104
}
97105

106+
/**
107+
* Set startPeriod in nanoseconds
108+
* @return this {@link HealthCheck} instance
109+
*/
98110
public HealthCheck withStartPeriod(Long startPeriod) {
99111
this.startPeriod = startPeriod;
100112
return this;

0 commit comments

Comments
 (0)
0