Class HTTPCheck

java.lang.Object
io.micronaut.discovery.consul.client.v1.NewCheck
io.micronaut.discovery.consul.client.v1.HTTPCheck
All Implemented Interfaces:
Check

@Deprecated(forRemoval=true, since="4.1.0") public class HTTPCheck extends NewCheck
Deprecated, for removal: This API element is subject to removal in a future version.
Use ConsulCheck instead.
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
    Constructor
    Description
    HTTPCheck(@Nullable String name, @Nullable URL url)
    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.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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.
    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
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    headers(io.micronaut.core.convert.value.ConvertibleMultiValues<String> headers)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    id(String ID)
    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(String interval)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    interval(Duration interval)
    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.
     
    notes(String notes)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    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.
     
    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 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HTTPCheck

      public HTTPCheck(@Nullable @Nullable String name, @Nullable @Nullable URL url)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      name - The name
      url - The URL
    • HTTPCheck

      public HTTPCheck(URL url)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      url - The URL
  • Method Details

    • interval

      public Duration interval()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The interval as a Duration
    • setInterval

      protected void setInterval(String interval)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the interval.
      Parameters:
      interval - The interval
    • interval

      public HTTPCheck interval(Duration interval)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      interval - The interval as a Duration
      Returns:
      The HTTPCheck instance
    • interval

      public HTTPCheck interval(String 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

      public Optional<String> getInterval()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The check interval
    • getHTTP

      public URL 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

      public Optional<io.micronaut.http.HttpMethod> 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

      public io.micronaut.core.convert.value.ConvertibleMultiValues<String> 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

      public void setHeaders(Map<CharSequence,List<String>> headers)
      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 - The HttpMethod
    • headers

      public HTTPCheck headers(io.micronaut.core.convert.value.ConvertibleMultiValues<String> headers)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      headers - The headers
      Returns:
      The HTTPCheck instance
    • tlsSkipVerify

      public HTTPCheck tlsSkipVerify(boolean 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

      public HTTPCheck method(io.micronaut.http.HttpMethod method)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      method - The HttpMethod
      Returns:
      The HTTPCheck instance
    • id

      public HTTPCheck id(String ID)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      id in class NewCheck
      Parameters:
      ID - The ID of the check
      Returns:
      The deregisterCriticalServiceAfter as a Duration
    • status

      public HTTPCheck status(Check.Status status)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      status in class NewCheck
      Parameters:
      status - The Check.Status of the check
      Returns:
      The deregisterCriticalServiceAfter as a Duration
    • notes

      public HTTPCheck notes(String notes)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      notes in class NewCheck
      Parameters:
      notes - The human readable notes
      Returns:
      The deregisterCriticalServiceAfter as a Duration
    • equals

      public boolean equals(Object o)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      equals in class NewCheck
    • hashCode

      public int hashCode()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      hashCode in class NewCheck