Class TTLCheck

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

@Deprecated(forRemoval=true, since="4.1.0") public class TTLCheck extends NewCheck
Deprecated, for removal: This API element is subject to removal in a future version.
Use ConsulCheck instead.
A TTL check.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • TTLCheck

      public TTLCheck()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getTtl

      public Optional<String> getTtl()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      The optional TTL
    • ttl

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

      public NewCheck ttl(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 NewCheck instance
    • 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