Class HTTPCheck
java.lang.Object
io.micronaut.discovery.consul.client.v1.NewCheck
io.micronaut.discovery.consul.client.v1.HTTPCheck
- All Implemented Interfaces:
Check
Deprecated, for removal: This API element is subject to removal in a future version.
A class representing an HTTP check. See https://www.consul.io/api/agent/check.html.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.micronaut.discovery.consul.client.v1.Check
Check.Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.io.micronaut.core.convert.value.ConvertibleMultiValues<String>Deprecated, for removal: This API element is subject to removal in a future version.See https://www.consul.io/api/agent/service.html#header.getHTTP()Deprecated, for removal: This API element is subject to removal in a future version.See https://www.consul.io/api/agent/service.html#http.Deprecated, for removal: This API element is subject to removal in a future version.Optional<io.micronaut.http.HttpMethod>Deprecated, for removal: This API element is subject to removal in a future version.See https://www.consul.io/api/agent/service.html#method.inthashCode()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.interval()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.booleanDeprecated, for removal: This API element is subject to removal in a future version.method(io.micronaut.http.HttpMethod method) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.voidsetHeaders(Map<CharSequence, List<String>> headers) Deprecated, for removal: This API element is subject to removal in a future version.protected voidsetInterval(String interval) Deprecated, for removal: This API element is subject to removal in a future version.Sets the interval.voidsetMethod(io.micronaut.http.HttpMethod method) Deprecated, for removal: This API element is subject to removal in a future version.voidsetTLSSkipVerify(boolean TLSSkipVerify) Deprecated, for removal: This API element is subject to removal in a future version.status(Check.Status status) Deprecated, for removal: This API element is subject to removal in a future version.tlsSkipVerify(boolean TLSSkipVerify) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class io.micronaut.discovery.consul.client.v1.NewCheck
deregisterCriticalServiceAfter, deregisterCriticalServiceAfter, deregisterCriticalServiceAfter, getDeregisterCriticalServiceAfter, getID, getName, getNotes, getStatus, setDeregisterCriticalServiceAfter, setName, setNotes, setStatus, status
-
Constructor Details
-
HTTPCheck
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
name- The nameurl- The URL
-
HTTPCheck
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
url- The URL
-
-
Method Details
-
interval
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The interval as a
Duration
-
setInterval
Deprecated, for removal: This API element is subject to removal in a future version.Sets the interval.- Parameters:
interval- The interval
-
interval
Deprecated, for removal: This API element is subject to removal in a future version. -
interval
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
interval- The interval as a string- Returns:
- The
HTTPCheckinstance
-
getInterval
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- The check interval
-
getHTTP
Deprecated, for removal: This API element is subject to removal in a future version.See https://www.consul.io/api/agent/service.html#http.- Returns:
- The HTTP URL to check
-
getMethod
Deprecated, for removal: This API element is subject to removal in a future version.See https://www.consul.io/api/agent/service.html#method.- Returns:
- The HTTP method to use for the check
-
getHeaders
Deprecated, for removal: This API element is subject to removal in a future version.See https://www.consul.io/api/agent/service.html#header.- Returns:
- The HTTP headers to use for the check
-
setHeaders
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
headers- The headers
-
isTLSSkipVerify
public boolean isTLSSkipVerify()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- Whether skip TLS verification
-
setTLSSkipVerify
public void setTLSSkipVerify(boolean TLSSkipVerify) Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
TLSSkipVerify- Skip the TLS verification
-
setMethod
public void setMethod(io.micronaut.http.HttpMethod method) Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
method- TheHttpMethod
-
headers
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
headers- The headers- Returns:
- The
HTTPCheckinstance
-
tlsSkipVerify
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
TLSSkipVerify- Skip the TLS verification- Returns:
- The
HTTPCheckinstance
-
method
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
method- TheHttpMethod- Returns:
- The
HTTPCheckinstance
-
id
Deprecated, for removal: This API element is subject to removal in a future version. -
status
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
statusin classNewCheck- Parameters:
status- TheCheck.Statusof the check- Returns:
- The deregisterCriticalServiceAfter as a
Duration
-
notes
Deprecated, for removal: This API element is subject to removal in a future version. -
equals
Deprecated, for removal: This API element is subject to removal in a future version. -
hashCode
public int hashCode()Deprecated, for removal: This API element is subject to removal in a future version.
-
ConsulCheckinstead.