Class NewCheck

java.lang.Object
io.micronaut.discovery.consul.client.v1.NewCheck
All Implemented Interfaces:
Check
Direct Known Subclasses:
HTTPCheck, TTLCheck

@Deprecated(forRemoval=true, since="4.1.0") public abstract class NewCheck extends Object implements Check
Deprecated, for removal: This API element is subject to removal in a future version.
Use ConsulCheck instead.
Base class for all checks.
Since:
1.0
Author:
Graeme Rocher
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.micronaut.discovery.consul.client.v1.Check

    Check.Status
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Deprecated, for removal: This API element is subject to removal in a future version.
    Default constructor.
    protected
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
     
    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.
     
    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.
     
    int
    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.
     
    notes(String notes)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    setDeregisterCriticalServiceAfter(String deregisterCriticalServiceAfter)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected void
    setStatus(String status)
    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.
     

    Methods inherited from class java.lang.Object

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

    • NewCheck

      protected NewCheck(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      name - The name
    • NewCheck

      protected NewCheck()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Default constructor.
  • Method Details

    • getName

      public String getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getName in interface Check
      Returns:
      The name of the check
    • getID

      public String getID()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getID in interface Check
      Returns:
      A unique ID for the check
    • getNotes

      public String getNotes()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getNotes in interface Check
      Returns:
      Human readable notes
    • getStatus

      public String getStatus()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The health status
    • status

      public Check.Status status()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      status in interface Check
      Returns:
      The status an an enum
    • deregisterCriticalServiceAfter

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

      public Optional<String> getDeregisterCriticalServiceAfter()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The deregisterCriticalServiceAfter as a Optional
    • deregisterCriticalServiceAfter

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

      public NewCheck deregisterCriticalServiceAfter(String interval)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      interval - The deregisterCriticalServiceAfter as a string
      Returns:
      The NewCheck instance
    • id

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

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

      public NewCheck notes(String notes)
      Deprecated, for removal: This API element is subject to removal in a future version.
      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 Object
    • hashCode

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

      protected void setName(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      name - The name
    • setDeregisterCriticalServiceAfter

      protected void setDeregisterCriticalServiceAfter(String deregisterCriticalServiceAfter)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      deregisterCriticalServiceAfter - Service to de-regsiter after
    • setStatus

      protected void setStatus(String status)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      status - The status
    • setNotes

      protected void setNotes(String notes)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      notes - The notes