Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,19 @@ public Long getTimeout() {
return timeout;
}

/**
* Set interval in nanoseconds
* @return this {@link HealthCheck} instance
*/
public HealthCheck withInterval(Long interval) {
this.interval = interval;
return this;
}

/**
* Set timeout in nanoseconds
* @return this {@link HealthCheck} instance
*/
public HealthCheck withTimeout(Long timeout) {
this.timeout = timeout;
return this;
Expand Down Expand Up @@ -95,6 +103,10 @@ public Long getStartPeriod() {
return startPeriod;
}

/**
* Set startPeriod in nanoseconds
* @return this {@link HealthCheck} instance
*/
public HealthCheck withStartPeriod(Long startPeriod) {
this.startPeriod = startPeriod;
return this;
Expand Down