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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated, 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.int
hashCode()
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.boolean
Deprecated, 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.void
setHeaders
(Map<CharSequence, List<String>> headers) Deprecated, for removal: This API element is subject to removal in a future version.protected void
setInterval
(String interval) Deprecated, for removal: This API element is subject to removal in a future version.Sets the interval.void
setMethod
(io.micronaut.http.HttpMethod method) Deprecated, for removal: This API element is subject to removal in a future version.void
setTLSSkipVerify
(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
HTTPCheck
instance
-
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
HTTPCheck
instance
-
tlsSkipVerify
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
TLSSkipVerify
- Skip the TLS verification- Returns:
- The
HTTPCheck
instance
-
method
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
method
- TheHttpMethod
- Returns:
- The
HTTPCheck
instance
-
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:
status
in classNewCheck
- Parameters:
status
- TheCheck.Status
of 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.
-
ConsulCheck
instead.