@ConfigurationProperties(value="check") public static class ConsulConfiguration.ConsulRegistrationConfiguration.CheckConfiguration extends Object implements Toggleable
| Modifier and Type | Field and Description | 
|---|---|
| static boolean | DEFAULT_ENABLEDThe default enable value. | 
| static boolean | DEFAULT_HTTPThe default http value. | 
| static int | DEFAULT_INTERVAL_SECONDSThe default interval seconds. | 
| Constructor and Description | 
|---|
| CheckConfiguration() | 
| Modifier and Type | Method and Description | 
|---|---|
| Optional<Duration> | getDeregisterCriticalServiceAfter() | 
| Map<CharSequence,List<String>> | getHeaders() | 
| Optional<String> | getId() | 
| Duration | getInterval() | 
| HttpMethod | getMethod() | 
| Optional<String> | getNotes() | 
| Optional<Boolean> | getTlsSkipVerify() | 
| boolean | isEnabled() | 
| boolean | isHttp() | 
| void | setDeregisterCriticalServiceAfter(Duration deregisterCriticalServiceAfter) | 
| void | setEnabled(boolean enabled)Default value (true). | 
| void | setHeaders(Map<CharSequence,List<String>> headers) | 
| void | setHttp(boolean http)Default value (false). | 
| void | setId(String id) | 
| void | setInterval(Duration interval)Default value (15). | 
| void | setMethod(HttpMethod method) | 
| void | setNotes(String notes) | 
| void | setTlsSkipVerify(Boolean tlsSkipVerify) | 
| String | toString() | 
public static final boolean DEFAULT_ENABLED
public static final boolean DEFAULT_HTTP
public static final int DEFAULT_INTERVAL_SECONDS
public Duration getInterval()
public void setInterval(Duration interval)
interval - The interval for the checkspublic boolean isHttp()
public void setHttp(boolean http)
http - Whether to perform an HTTP checkpublic boolean isEnabled()
isEnabled in interface Toggleablepublic void setEnabled(boolean enabled)
enabled - Whether the check module is enabledpublic Optional<Duration> getDeregisterCriticalServiceAfter()
public void setDeregisterCriticalServiceAfter(Duration deregisterCriticalServiceAfter)
deregisterCriticalServiceAfter - Specifies that checks associated with a service should deregister after this timepublic void setId(String id)
id - The unique ID for this check on the nodepublic Optional<String> getNotes()
public void setNotes(String notes)
notes - Arbitrary information for humanspublic Optional<Boolean> getTlsSkipVerify()
public void setTlsSkipVerify(Boolean tlsSkipVerify)
tlsSkipVerify - Specifies if the certificate for an HTTPS check should not be verified.public HttpMethod getMethod()
public void setMethod(HttpMethod method)
method - The HTTP method to be used for an HTTP check.public Map<CharSequence,List<String>> getHeaders()
public void setHeaders(Map<CharSequence,List<String>> headers)
headers - Headers for the HTTP checks