Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d138d51

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

File tree

1 file changed

+12
-0
lines changed
Filter options

1 file changed

+12
-0
lines changed

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

Copy file name to clipboardExpand all lines: docker-java-api/src/main/java/com/github/dockerjava/api/model/HealthCheck.java
+12Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.