public static RegCheck http(String http, long interval, long timeout) { return ImmutableRegCheck .builder() .http(http) .interval(String.format("%ss", interval)) .timeout(String.format("%ss", timeout)) .build(); }
public static RegCheck http(String http, long interval, long timeout, String notes) { return ImmutableRegCheck .builder() .http(http) .interval(String.format("%ss", interval)) .timeout(String.format("%ss", timeout)) .notes(notes) .build(); }
return Optional.of( ImmutableRegCheck.builder() .http(uri.toASCIIString()) .interval(String.format("%ss", configuration.getCheckInterval())) .deregisterCriticalServiceAfter(String.format("%ss", configuration.getDeregisterAfter())) return Optional.of( ImmutableRegCheck.builder() .http(uri.toASCIIString()) .interval(String.format("%ss", configuration.getCheckInterval())) .deregisterCriticalServiceAfter(String.format("%ss", configuration.getDeregisterAfter()))
.http(getHealthCheckUrl()) .interval(String.format("%ds", configuration.getCheckInterval().toSeconds())) .deregisterCriticalServiceAfter(
http(httpOptional);
builder.http(json.http);
public static RegCheck http(String http, long interval) { return ImmutableRegCheck .builder() .http(http) .interval(String.format("%ss", interval)) .build(); }